def seq2str2(sequence):
 if (not sequence):
  return '[ ]'
 return ('[ %s ]' % ' | '.join((unic(item) for item in sequence)))

def seq2str2 ( sequence ) : if ( not sequence ) : return '[ ]' return ( '[ %s ]' % ' | ' . join ( ( unic ( item ) for item in sequence ) ) )
returns sequence in format [ item 1 | item 2 | .