Py3 compatibility work. Reworking repr/str.