Threaded container for django application, integration with twisted asynchronous framework