Tweaks to get libnml to work on python 3