renamed print to __repr__