bt - a flexible backtesting framework written in Python