I googled a lot to find any python module to access TimesTen (in memory database). I am writing a automated testing framework (more like for System Test and not Unit Test).
I didn't find native one, but TimesTen has ODBC interface that you could use.
http://www.compwisdom.com/topics/ODBC