[python] Purpose of __repr__ method?