I had a problem earlier with not being able to open python files. I reinstalled python completely, uninstalled every bit of python and then just installed it a new.
N