Python Scope Issue Runtime Error When Running Python Script With

Python Scope Issue Runtime Error When Running Python Script With