Access A Variable From Another Function Python Syntax If Else Statement