Changes to python bindings for Mac