Python Variable Scope In Function Ms Access