Fixed shebangs and references for Python 3.