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

p1 = shapes.Point(2, 3)

print(p1.x)    # 2
print(p1.y)    # 3

p1.move(4, 5)
print(p1.x)    # 6
print(p1.y)    # 8

examples/classes/methods/shapes.py
class Point(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y

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