Open edX devstack installation error on Ubuntu 16.04

I am installing open edx on ubuntu 16.4 using below link tutorial https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/installation/index.html.

While hitting below command i am facing issues

make dev.provision

    ++ docker-compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform && NO_PYTHON_UNINSTALL=1 paver install_prereqs'
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/bin/paver", line 11, in <module>
    sys.exit(main())
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 890, in main
    _launch_pavement(args)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 858, in _launch_pavement
    exec(compile(source, environment.pavement_file, 'exec'), mod.__dict__)
  File "pavement.py", line 14, in <module>
    from pavelib import *
  File "pavelib/__init__.py", line 6, in <module>
    from . import assets, bok_choy, database, docs, i18n, js_test, prereqs, quality, servers, tests
  File "pavelib/assets.py", line 24, in <module>
    from .utils.envs import Env
  File "pavelib/utils/envs.py", line 331
    file=sys.stderr,
        ^
SyntaxError: invalid syntax
Makefile:57: recipe for target 'dev.provision.run' failed
make: *** [dev.provision.run] Error 1

Somehow you are running Python 2. How did you set up your Python environment?