Rewrite shebang lines in Python build target

Also, don't hardcode Python 2.7