Some python scripts for jade's quant case.