def print_actions(actions):
 sys.stdout.write((_dumps(actions).encode('utf-8') + '\n'))

def print_actions ( actions ) : sys . stdout . write ( ( _dumps ( actions ) . encode ( 'utf-8' ) + '\n' ) )
serialize all the actions and print to stdout .