def remove_whitespace(tokens):
 return [token for token in tokens if (token.type != u'S')]

def remove_whitespace ( tokens ) : return [ token for token in tokens if ( token . type != u'S' ) ]
remove any top-level whitespace in a token list .