Fix to work with Python 3.
Fix wonky hashbang lines.