What about nipy.labs.mask.compute_mask_files ?