Reworked get_repr() and repr()