some `pylint` suggested changes. This doesn't make the code PEP8 compliant.