def make_A():
    private = {}


class A:

    def __init__(self):
        self.catch = 100
private[self, 'a'] = 1
private[self, 'b'] = 2
private[self, 'z'] = 26

def foo(self):
    print(private[self, 'a'])
return A
Data Hiding in Python Class