def event_return(events):
 for event in events:
  ret = event.get('data', False)
  if ret:
   returner(ret)

def event_return ( events ) : for event in events : ret = event . get ( 'data' , False ) if ret : returner ( ret )
print event return data to the terminal to verify functionality .