Use repr instead of str for python3 compat.