Update motion.py