Remove some unused imports
Refactor use of tornado event loop