first of all - sparkz_alot and Larz60+ are correct - always post the full traceback in error tags. As to the particular problem - do you really haveĀ lines 23 and 25 commented? if yes, it assumes everything between lines 22-26 is a single line and gives you syntax error. remove the
#
from line 23 and 25