Compact backtesting framework in Python/pandas