Python Error Nameerror Name Self Is Not Defined When Using Exec

Python Error Nameerror Name Self Is Not Defined When Using Exec