Minor style improvements and code cleanup.
Fix autopep8 shenanigans in the url routes.