class A(object):

    def __pick(self):
        print('1')

def doitinA(self):
    self.__pick()


class B(A):

    def __pick(self):
        print('2')

def doitinB(self):
    self.__pick()
b = B()
b.doitinA()
b.doitinB()
dis(A.doitinA)
print() 
dis(B.doitinB)
How do I override a parent class's functions in python?