The libraries python-redfish and python-ilorest are not compatible. python-ilorest is a fork from Hewlett Packard from 2016. Since then, it has been developed separately and incompatible.
python-redfish is still active and is being actively developed by the Distributed Management Task Force (dmtf.org). I contacted the maintainer of python-ilorest and asked if he could adapt the namespace.