Python Function Inside Function Access Variable From Another Script