examples/classes/stringification/point.py
from __future__ import print_function
import shapes

p1 = shapes.Point(2, 3)
print(p1)    # (2, 3)
examples/classes/stringification/shapes.py
class Point(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __repr__(self):
       return '({:}, {:})'.format(self.x, self.y)

    def move(self, dx, dy):
        self.x += dx
        self.y += dy