In the future, don't post code like that that you know doesn't run without saying so. You should have said that you were getting a syntax error, and if your IDE is any good, you should have known and said what line. (You very well may not be using a good IDE, which I don't blame you for, but consider changing.)
Join the #python-forum IRC channel on irc.freenode.net!
Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.