Fixes https://github.com/pyugrid/pyugrid/issues/24 and passes PEP8.