Make code conform with PEP8 a little better.
Add requirements.txt, fix up a couple of formatting issues.