Fix pymeterp bugs from testing in osx and python3