bpython is a lightweight Python interpreter that adds several features common to IDEs. These features include syntax highlighting, expected parameter list, auto-indentation, and autocompletion. (See ...
If you prefer IPython you can use flask-shell-ipython, while if you prefer PTPython you can use flask-shell-ptpython.