Made some changes for "-disablepython" mode, to make it work again.