Rewrite __repr__ change print to str