Fix string for py3 compatibility