Py3 fix for NoneType eta.undefined.