Refactored hornby.py for PEP8 compliance.