Add Python 3 support

The unicode function is not in python 3, the str function now does the
same.

see: http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#unicode

This also runs the tests in travis against both versions.