Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: s/python/python3/g
--- nipy.orig/doc/devel/tools/tricked_out_emacs.rst
+++ nipy/doc/devel/tools/tricked_out_emacs.rst
@@ -83,7 +83,7 @@
 `flymake .emacs snippet`_ in your ``.emacs`` file.  You will see, in the
 emacs_python_mode_ page, that you will need to save this::
 
-    #!/usr/bin/env python
+    #!/usr/bin/env python3
     
     import re
     import sys
--- nipy.orig/doc/sphinxext/autosummary_generate.py
+++ nipy/doc/sphinxext/autosummary_generate.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 r"""
--- nipy.orig/examples/affine_registration.py
+++ nipy/examples/affine_registration.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """
--- nipy.orig/examples/algorithms/bayesian_gaussian_mixtures.py
+++ nipy/examples/algorithms/bayesian_gaussian_mixtures.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/algorithms/clustering_comparisons.py
+++ nipy/examples/algorithms/clustering_comparisons.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/algorithms/gaussian_mixture_models.py
+++ nipy/examples/algorithms/gaussian_mixture_models.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/algorithms/mixed_effects.py
+++ nipy/examples/algorithms/mixed_effects.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/algorithms/ward_clustering.py
+++ nipy/examples/algorithms/ward_clustering.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function, division # Python 2/3 compatibility
--- nipy.orig/examples/compute_fmri_contrast.py
+++ nipy/examples/compute_fmri_contrast.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/core/parcel_generator.py
+++ nipy/examples/core/parcel_generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/create_tempimage.py
+++ nipy/examples/create_tempimage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """This example shows how to create a temporary image to use during processing.
--- nipy.orig/examples/ds105/view_contrasts_3d.py
+++ nipy/examples/ds105/view_contrasts_3d.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """A quick and dirty example of using Mayavi to overlay anatomy and activation.
--- nipy.orig/examples/fiac/view_contrasts_3d.py
+++ nipy/examples/fiac/view_contrasts_3d.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """A quick and dirty example of using Mayavi to overlay anatomy and activation.
--- nipy.orig/examples/formula/fir.py
+++ nipy/examples/formula/fir.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """ Example of FIR model using formula framework
--- nipy.orig/examples/formula/multi_session_contrast.py
+++ nipy/examples/formula/multi_session_contrast.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """ Example of more than one run in the same model
--- nipy.orig/examples/formula/parametric_design.py
+++ nipy/examples/formula/parametric_design.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """
--- nipy.orig/examples/formula/simple_contrast.py
+++ nipy/examples/formula/simple_contrast.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """ A simple contrast for an FMRI HRF model """
--- nipy.orig/examples/image_from_array.py
+++ nipy/examples/image_from_array.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """Create a nifti image from a numpy array and an affine transform.
--- nipy.orig/examples/interfaces/process_ds105.py
+++ nipy/examples/interfaces/process_ds105.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 ''' Single subject analysis script for SPM / Open FMRI ds105
--- nipy.orig/examples/interfaces/process_fiac.py
+++ nipy/examples/interfaces/process_fiac.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 ''' Single subject analysis script for SPM / FIAC '''
--- nipy.orig/examples/labs/bayesian_structural_analysis.py
+++ nipy/examples/labs/bayesian_structural_analysis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/blob_extraction.py
+++ nipy/examples/labs/blob_extraction.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/demo_dmtx.py
+++ nipy/examples/labs/demo_dmtx.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/example_glm.py
+++ nipy/examples/labs/example_glm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/glm_lowlevel.py
+++ nipy/examples/labs/glm_lowlevel.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/group_reproducibility_analysis.py
+++ nipy/examples/labs/group_reproducibility_analysis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/hierarchical_rois.py
+++ nipy/examples/labs/hierarchical_rois.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/histogram_fits.py
+++ nipy/examples/labs/histogram_fits.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/multi_subject_parcellation.py
+++ nipy/examples/labs/multi_subject_parcellation.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/bayesian_structural_analysis.py
+++ nipy/examples/labs/need_data/bayesian_structural_analysis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/demo_blob_from_image.py
+++ nipy/examples/labs/need_data/demo_blob_from_image.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/demo_roi.py
+++ nipy/examples/labs/need_data/demo_roi.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/demo_ward_clustering.py
+++ nipy/examples/labs/need_data/demo_ward_clustering.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/example_roi_and_glm.py
+++ nipy/examples/labs/need_data/example_roi_and_glm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/first_level_fiac.py
+++ nipy/examples/labs/need_data/first_level_fiac.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/get_data_light.py
+++ nipy/examples/labs/need_data/get_data_light.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/glm_beta_and_variance.py
+++ nipy/examples/labs/need_data/glm_beta_and_variance.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function
--- nipy.orig/examples/labs/need_data/group_reproducibility_analysis.py
+++ nipy/examples/labs/need_data/group_reproducibility_analysis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/histogram_fits.py
+++ nipy/examples/labs/need_data/histogram_fits.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/localizer_glm_ar.py
+++ nipy/examples/labs/need_data/localizer_glm_ar.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/one_sample_t_test.py
+++ nipy/examples/labs/need_data/one_sample_t_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function
--- nipy.orig/examples/labs/need_data/parcel_intra.py
+++ nipy/examples/labs/need_data/parcel_intra.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/parcel_multisubj.py
+++ nipy/examples/labs/need_data/parcel_multisubj.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/permutation_test.py
+++ nipy/examples/labs/need_data/permutation_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/plot_registration.py
+++ nipy/examples/labs/need_data/plot_registration.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/tmin_statistic.py
+++ nipy/examples/labs/need_data/tmin_statistic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function
--- nipy.orig/examples/labs/need_data/viz.py
+++ nipy/examples/labs/need_data/viz.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/need_data/viz3d.py
+++ nipy/examples/labs/need_data/viz3d.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function
--- nipy.orig/examples/labs/onesample_group.py
+++ nipy/examples/labs/onesample_group.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """
--- nipy.orig/examples/labs/permutation_test_fakedata.py
+++ nipy/examples/labs/permutation_test_fakedata.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """ Example script for group permutation testing """
--- nipy.orig/examples/labs/two_sample_mixed_effects.py
+++ nipy/examples/labs/two_sample_mixed_effects.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/watershed_labeling.py
+++ nipy/examples/labs/watershed_labeling.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/labs/write_paradigm_file.py
+++ nipy/examples/labs/write_paradigm_file.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function # Python 2/3 compatibility
--- nipy.orig/examples/parcel_group_analysis.py
+++ nipy/examples/parcel_group_analysis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """Example running a parcel-based second-level analysis from a set of
--- nipy.orig/examples/space_time_realign.py
+++ nipy/examples/space_time_realign.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """
--- nipy.orig/examples/tissue_classification.py
+++ nipy/examples/tissue_classification.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """ Script example of tissue classification
--- nipy.orig/lib/lapack_lite/remake/make_lite.py
+++ nipy/lib/lapack_lite/remake/make_lite.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys, os
 import fortran
--- nipy.orig/nipy/algorithms/clustering/setup.py
+++ nipy/nipy/algorithms/clustering/setup.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import, print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 def configuration(parent_package='',top_path=None):
 
--- nipy.orig/nipy/algorithms/clustering/tests/test_clustering.py
+++ nipy/nipy/algorithms/clustering/tests/test_clustering.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # to run only the simple tests:
 # python testClustering.py Test_Clustering
--- nipy.orig/nipy/algorithms/clustering/tests/test_ggm.py
+++ nipy/nipy/algorithms/clustering/tests/test_ggm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import print_function
 from __future__ import absolute_import
 
--- nipy.orig/nipy/algorithms/clustering/tests/test_gmm.py
+++ nipy/nipy/algorithms/clustering/tests/test_gmm.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # to run only the simple tests:
 # python testClustering.py Test_Clustering
--- nipy.orig/nipy/algorithms/graph/setup.py
+++ nipy/nipy/algorithms/graph/setup.py
@@ -1,6 +1,6 @@
 from __future__ import absolute_import
 from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import numpy
 
 
--- nipy.orig/nipy/algorithms/graph/tests/test_bipartite_graph.py
+++ nipy/nipy/algorithms/graph/tests/test_bipartite_graph.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 import numpy.random as nr
--- nipy.orig/nipy/algorithms/graph/tests/test_field.py
+++ nipy/nipy/algorithms/graph/tests/test_field.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import numpy as np
 import numpy.random as nr
 
--- nipy.orig/nipy/algorithms/graph/tests/test_graph.py
+++ nipy/nipy/algorithms/graph/tests/test_graph.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 import numpy.random as nr
--- nipy.orig/nipy/algorithms/registration/scripting.py
+++ nipy/nipy/algorithms/registration/scripting.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 
--- nipy.orig/nipy/algorithms/registration/tests/test_affine.py
+++ nipy/nipy/algorithms/registration/tests/test_affine.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 
--- nipy.orig/nipy/algorithms/registration/tests/test_histogram_registration.py
+++ nipy/nipy/algorithms/registration/tests/test_histogram_registration.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 
--- nipy.orig/nipy/algorithms/registration/tests/test_scripting.py
+++ nipy/nipy/algorithms/registration/tests/test_scripting.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import absolute_import
--- nipy.orig/nipy/algorithms/statistics/tests/test_quantile.py
+++ nipy/nipy/algorithms/statistics/tests/test_quantile.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 from numpy import median as np_median
--- nipy.orig/nipy/algorithms/statistics/tests/test_utils.py
+++ nipy/nipy/algorithms/statistics/tests/test_utils.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 
--- nipy.orig/nipy/labs/bindings/tests/test_array.py
+++ nipy/nipy/labs/bindings/tests/test_array.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 #
 # Test fff_array wrapping 
--- nipy.orig/nipy/labs/bindings/tests/test_blas1.py
+++ nipy/nipy/labs/bindings/tests/test_blas1.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 #
 # Test BLAS 1
--- nipy.orig/nipy/labs/bindings/tests/test_blas3.py
+++ nipy/nipy/labs/bindings/tests/test_blas3.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 
 #
--- nipy.orig/nipy/labs/bindings/tests/test_linalg.py
+++ nipy/nipy/labs/bindings/tests/test_linalg.py
@@ -1,5 +1,5 @@
 from __future__ import absolute_import
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 #
 # Test fff linear algebra routines 
--- nipy.orig/nipy/labs/glm/setup.py
+++ nipy/nipy/labs/glm/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import absolute_import, print_function
 
 
--- nipy.orig/nipy/labs/glm/tests/test_glm.py
+++ nipy/nipy/labs/glm/tests/test_glm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import absolute_import
 
 import numpy as np
--- nipy.orig/nipy/labs/utils/setup.py
+++ nipy/nipy/labs/utils/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import absolute_import, print_function
 
 
--- nipy.orig/nipy/labs/utils/tests/test_misc.py
+++ nipy/nipy/labs/utils/tests/test_misc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import absolute_import
 
 import numpy as np
--- nipy.orig/nipy/labs/viz_tools/activation_maps.py
+++ nipy/nipy/labs/viz_tools/activation_maps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Functions to do automatic visualization of activation-like maps.
--- nipy.orig/setup.py
+++ nipy/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 import os
--- nipy.orig/setup_egg.py
+++ nipy/setup_egg.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """Wrapper to run setup.py using setuptools."""
--- nipy.orig/tools/build_dmgs.py
+++ nipy/tools/build_dmgs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Script to build dmgs for buildbot builds
 
 Example
--- nipy.orig/tools/build_modref_templates.py
+++ nipy/tools/build_modref_templates.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """Script to auto-generate our API docs.
--- nipy.orig/tools/doctest_extmods.py
+++ nipy/tools/doctest_extmods.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Run doctests in extension modules of <pkg_name>
 
 Collect extension modules in <pkg_name>
--- nipy.orig/tools/fix_longtable.py
+++ nipy/tools/fix_longtable.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """ Fix sphinx latex output for longtable
 """
 import re
--- nipy.orig/tools/gitwash_dumper.py
+++ nipy/tools/gitwash_dumper.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 ''' Checkout gitwash repo into directory and do search replace on name '''
 
 from __future__ import (absolute_import, division, print_function)
--- nipy.orig/tools/nicythize
+++ nipy/tools/nicythize
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """ nicythize
 
 Cythonize pyx files into C files as needed.
--- nipy.orig/tools/nipnost
+++ nipy/tools/nipnost
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # vim: ft=python
 """ Run nosetests using nipy doctest plugin
 
--- nipy.orig/tools/perlpie
+++ nipy/tools/perlpie
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 """Utility script for performing global search and replace with `perl -p ie`
 """
--- nipy.orig/tools/refresh_readme.py
+++ nipy/tools/refresh_readme.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """ Refresh README.rst file from long description
 
 Should be run from project root (containing setup.py)
--- nipy.orig/tools/run_log_examples.py
+++ nipy/tools/run_log_examples.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 from __future__ import print_function, with_statement
--- nipy.orig/tools/sneeze.py
+++ nipy/tools/sneeze.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 """Script to run nose with coverage reporting without boilerplate params.
--- nipy.orig/tools/touch_cython_cs.py
+++ nipy/tools/touch_cython_cs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """ Refresh modification times on Cython generated C files
 
 This is sometimes necessary on windows when the git checkout appears to
--- nipy.orig/tools/trac2rst.py
+++ nipy/tools/trac2rst.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 ''' Script to do very basic conversion of TRAC to reST format '''
--- nipy.orig/scripts/nipy_3dto4d
+++ nipy/scripts/nipy_3dto4d
@@ -1,4 +1,4 @@
-#!python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 DESCRIP = 'Read 3D image files and write a 4D file'
--- nipy.orig/scripts/nipy_4d_realign
+++ nipy/scripts/nipy_4d_realign
@@ -1,4 +1,4 @@
-#!python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 
--- nipy.orig/scripts/nipy_4dto3d
+++ nipy/scripts/nipy_4dto3d
@@ -1,4 +1,4 @@
-#!python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 DESCRIP = 'Read 4D image file and write 3D nifti file for each volume'
--- nipy.orig/scripts/nipy_diagnose
+++ nipy/scripts/nipy_diagnose
@@ -1,4 +1,4 @@
-#!python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 DESCRIP = 'Calculate and write results for diagnostic screen'
--- nipy.orig/scripts/nipy_tsdiffana
+++ nipy/scripts/nipy_tsdiffana
@@ -1,4 +1,4 @@
-#!python
+#!/usr/bin/env python3
 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
 # vi: set ft=python sts=4 ts=4 sw=4 et:
 DESCRIP = ' Analyze, plot time series difference metrics'
