Python Use Variable Defined In Another Function