Cleaning up the code using pylint

For this first pull request, I decided to clean up the code a bit using pylint to validate against PEP-8. There's more to do around that topic, but at least your pylint score is positive now, as opposed to being negative. Plus, it helped me to figure out a few things with the API.