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 for off-topic chat!
Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from