fluxpreserved.py