Calling A Variable From Another Function Python Syntax For Loop