Python3 compatibility for hidconsole

`type(u'')` is 'str' in Python 3, it was `unicode` on Python 2 (with
`unicode_literals` from `__future__`).
Merge pull request #33 from Lekensteyn/py3-hidconsole

Python3 compatibility for hidconsole