Access A Variable From Another Function Python Syntax If Then Else