Get Value Of A Function In Python