python-ProfitPy -- python libraries and tools to use Interactive Brokers TWS
http://profitpy.sourceforge.net/
ProfitPy: libraries and tools for the development, testing, and execution of automated stock trading systems: Interactive Brokers Python API