fixes Python2 build on Mac OS X