I have ran into this issue myself today and what i found out is that Apple removed the python(2.7) framework(previously found in /System/Library/Frameworks/Python.framework), this is why you get the error.
What I did and worked for me was to install python 2.7 from the official python website. This will install as a normal application and afterwords you will get the framework in /Library/Frameworks/Python.Framework .
This worked for me, hopefully for you guys as well