Fix tabs and pep8 errors. Fixes #1