Use python2 explicitly to run bitmask-root.

Closes #6048.