Some misc Python quant stuff.