Fix some Python3 issues.
Merge branch 'master' of github.com:zeth/magpy