use env python2 instead of env python.

This makes compilation compatible with systems where python 3 and python
2 are both present.