PEP8 and pyflakes compliance and testing. Fixes #4.