Use `repr` instead of `unicode` to get instance string for python 3 compatibility