Fix Python 3 in OSX build