Python Using Variables From Other Functions