Ubuntu 16.04 "xenial xerus" does not come with Python 2.x by default. It is possible to install a python-2.7 package, but this has its own problem: no python or python2 symlink (see #7717).
This fixes the following scripts to work with python 3:
make check(bctest,py, bitcoin-util-test.py)make translate(extract_strings_qt.py)make symbols-check(symbol-check.py)make security-check(security-check.py)make deployfor OS X (custom_dsstore.py, macdeployqtplus)
Explicitly call the python commands using $(PYTHON) (detected by autoconf) instead of relying on the interpreter line at the top of the scripts.
Python 2.x compatibility should be unaffected. For the build system I think it's good to have both Python2 and Python3 compatibility. This is not necessary for the other python scripts, such as the RPC tests. For practical reasons it's ok to have an explicit Python 2.7 dependency for those - though we'll have to document that.