Some PEP8 and code cleanups.

git-svn-id: http://svn.flexget.com/trunk@3239 3942dd89-8c5d-46d7-aeed-044bccf3e60c