Replaced repr with %r where possible