pismi.py is idempotent; also added -inv_max_it flag