def rl_autoindent():
    """Auto-indent upon typing a new line according to the contents of the
    previous line.  This function will be used as Readline's
    pre-input-hook.
    """
How to enable python repl autocomplete and still allow new line tabs