Python Get Variable From Function In Python