Backtesting and Trading Engine in Python