Some Python changes for OS X