class data_2 class data_1 None def __init__ self self data_2 MyData da

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
class data_2:
a = ''
class data_1:
a = 0
b = None
def __init__(self):
self.b = data_2()
MyData data_1()
MyData.a = 1;
MyData.b.a = 2;