Code tidy to ensure it complies with the Python coding standard (10/10 from PyLint).