Python wrapper of the IER middleware