A python simulator for the NRFU operation