A Simple Turing Machine Simulator in Python