If I put the code... class myErrorClass: element_number = -1 ... and then later... an_Error = myErrorClass() return an_Error ... I get an error message when the custom class is instantiated and/or returned. Can I not create classes within a python script? Thanks in advance, Ron