Hi James,

fix-division
============
For all .py files in the present directory, it will add the “from future” to any files that need it, recursively. The new line will go after any “#!” line or module level docstrings and before any other line. Variable whitespace is handled gracefully. This allows any document generators to recognize the module-level docstrings.

libtbx.add_from_future_import_division path/to/some/directory

does already do that. That's the script I wrote in order to mass insert "from __future__ import division" everywhere in the cctbx a few years back.

Best wishes,

Luc