Update turnIntoStopMotion.py

Improved compliance with PEP8, added docstrings and comments, changed button commands to pass function objects instead of strings