PyNUT: Create a custom exception class.

This maintains backwards compatibility, and allows calling programs to
use "except PyNUTError" instead of "except Exception" when using PyNUT
methods.

See https://wiki.python.org/moin/HandlingExceptions for more
information.