Use python shebang specifying version 2

Fixes compilation errors on systems where multiple python versions are
installed at the same time.