Python motor control

Removed dependency of js files for motor control and put in python.