1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Parent(object):
    name = 'Anon'

    def method(self):
        print self.name


class Child(Parent):
    name = 'Somebody, Dammit'


if __name__ == '__main__':
    c = Child()
    c.method()