@gen.engine
def WriteRegistry(logs_store, path, processed_list, callback):
 contents = '\n'.join(processed_list)
 (yield gen.Task(logs_store.Put, path, contents))
 callback()

@ gen . engine def WriteRegistry ( logs_store , path , processed_list , callback ) : contents = '\n' . join ( processed_list ) ( yield gen . Task ( logs_store . Put , path , contents ) ) callback ( )
turns processed_list into a new-line separated string and writes it to path in s3 .