class A(object):
    def __init__(self):
        self.x = 'Hello'

    def method_a(self, foo):
        print self.x + ' ' + foo
class Point:
    def __init__(self, x, y):
        self._x = x
        self._y = y

x = Point(1,2)
class MyClass(object):
    i = 123
    def __init__(self):
        self.i = 345
     
a = MyClass()
print(a.i)
print(MyClass.i)

#out
345
123