updated python binding makefile so that it works on both OSX and Linux, ref #26, ref #38