Python3 compatibility for hidconsole

`type(u'')` is 'str' in Python 3, it was `unicode` on Python 2 (with
`unicode_literals` from `__future__`).

This patch adds Python3 support for hidconsole.