Edited motor.py