Create motor.py

Working base code from Adafruit