Update hubic.py

Update hubic.py so that it can be used as a module from other apps
Merge pull request #5 from PunKeel/patch-1

Make script usable as module
issue: #5