Pytests: fixed build on rhel.