Python Code For Trading Strategies