How To Inherit A Function In Python