Moved niri_redux.py from CodeCDF repo to this repo