<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def pyError(self, type, value, traceback):
        '''Handles an error thrown during invocation of an EWrapper method.

        Arguments are those provided by sys.exc_info()
        '''
        sys.stderr.write("Exception thrown during EWrapper method dispatch:\n")
        print_exception(type, value, traceback)