Access A Variable From Another Function Python Syntax Error