Change python shebangs to use /usr/bin/env

Review 1149 by @neumino
Closes #1889