print object using __repr__