Typos and PEP8/PEP257

Those are the same changes from an old pull request on bitbucket.