action triggering fixed; removed time.sleep in favor of event.wait