Hueplugin python32

Adaptions for Python 3.2