Also find Python installed as a framework on Mac OS X

This is something I’ve had lying around for a long time. It enables building with the Python 2.7 framework from MacPorts on Mac OS X 10.6 for me, and judging from the commit message I also tested it with other versions at the time.