paperlocal variable defined in enclosing scope referenced before assignment pythonShare on FacebookShare on Twitter284