#NEWLINE# def handle( token_dict , prefix ) : #NEWLINE# #INDENT# token = [ t for t in token_dict . keys ( ) if ( t . startswith ( prefix ) and ( token_dict [ t ] is not None ) ) ] [ 0 ] #NEWLINE# suffix = token [ len ( prefix ) : ] #NEWLINE# v = ( token_dict [ token [ : token . rfind ( '_index' ) ] ] if token . endswith ( '_index' ) else None ) #NEWLINE# return ADDR_MAP [ suffix ] ( token_dict [ token ] , v )