def HandleException(desc, exception):
 args = (((str(desc) + '\n') + str(exception)), 'An exception occurred!')
 thread.start_new_thread(Forms.MessageBox.Show, args)

def HandleException ( desc , exception ) : args = ( ( ( str ( desc ) + '\n' ) + str ( exception ) ) , 'An exception occurred!' ) thread . start_new_thread ( Forms . MessageBox . Show , args )
this pops up windows .