PyNUT: Refactoring and a bug fix

A few changes to PyNUT.py. These maintain 100% backwards compatibility.

I am developing a module that breaks backwards compatibility with PyNUT 1.X [here](https://github.com/george2/python-nut2/tree/development), and thought I would contribute back what I could. Any input on the new `nut2` API is welcome.