hotfix to make pyReducedInference work again