Python Quant Code Example