Add support for Python 3, unicode

The unicode function is not in python 3 as string literals are by default unicode strings.