Replace #!/usr/bin/python with #!/usr/bin/env python for python2

Replace #!/usr/bin/python with #!/usr/bin/env python for python2 while both python3 and python2 are installed.