Fix exception handling, style issues.
Merge branch 'master' of https://github.com/george2/python-nut2