Use python2 explicitly to run bitmask-root.

Closes #6048.
Merge remote-tracking branch 'refs/remotes/ivan/bug/6048_python2-bitmask-root' into develop