def to_int(s):
try:<EOL><INDENT>return int(s.replace('<STR_LIT:_>', '<STR_LIT>'))<EOL><DEDENT>except ValueError:<EOL><INDENT>return int(ast.literal_eval(s))<EOL><DEDENT>
converts a string to an integer

    >>> to_int('1_000_000')
    1000000

    >>> to_int('1e6')
    1000000

    >>> to_int('1000')
    1000