[ha] [odl] Patch hostconfig for py3 compat