Numerous PEP8 style fixes and removal of unused imports.

--HG--
branch : PEP8
Merged in joshcartme/filebrowser-safe/PEP8 (pull request #5)

Numerous PEP8 style fixes and removal of unused imports.