python backtester based on iTrade source code