Update pimotion.py