Passing Function To A Function In Python