PyNUT: Python 3 support

This adds on top of pull request #128 by allowing PyNUT to be run on Python 3.