I am pretty new to Python and I have been pretty annoyed with this problem. I am not sure if this matters, but I run my .py file with Python 2.7.6 with python installed on m
You should run it from command window/terminal instead of double clicking on the file.