human
Give me a the Python code you requested given the following:
Complete the below
def enable_automatic_int_sympification(app):

    ''''Allow IPython to automatically convert integer literals to Integer.'
    '''
assistant
#Here is the Python code you requested.
    hasshell = hasattr(app, 'shell')
    import ast
    if hasshell:
        old_run_cell = app.shell.run_cell
    else:
        old_run_cell = app.run_cell
    def my_run_cell(cell, *args, **kwargs):
        try:
            ast.parse(cell)
        except SyntaxError:
            pass
        else:
            cell = int_to_Integer(cell)
        old_run_cell(cell, *args, **kwargs)
    if hasshell:
        app.shell.run_cell = my_run_cell
    else:
        app.run_cell = my_run_cell