Refactor throttle method in train class for PEP8 compliance.