pep8ify main script, tests ans stuff in misc/.

I forgot this when pep8-ifying the repo.