replaced WeakValueDictionary with a simple dict in TornadoEventLoop