PEP8, remove tornado-specific code