Replace the default ``flask shell`` command with a similar one running PTPython.
flask-shell-ptpython is on PyPI, so all you have to do is:
$ pip install flask-shell-ptpython
flask-shell-ptpython hooks itself into Flask through an entry point, so all you have to do is:
$ flask shell