Tornado convert

Fixes for config issues. Made some files PEP-8 compliant