Use unicode in py3, str in py2