def is_special_key(keystr):
 return (keystr.startswith('<') and keystr.endswith('>'))

def is_special_key ( keystr ) : return ( keystr . startswith ( '<' ) and keystr . endswith ( '>' ) )
true if keystr is a special keystring .