Tornado convert

Fixes for config issues. Some PEP8 stuff.