Python Variable Scope For Loop