Rewrite __repr__ change print to str

This close #10.