Call python interpreter instead of using '#!' in script.

This fixes builds on platforms where python is in /usr/local/bin.
Thanks to Jan Stary for reporting this.