Yet another oversight. Had forgotten to remove print and raw_input() statements from mame.py. Rectified.