If you have the header file for python 2.7, I am assuming that version 2.7 is installed on your system as well, probably somewhere in /usr/local based on the location of the header file. Try changing your pythonhome variable to point to that version rather than the one in /usr/bin