python version fixes
skip if host_group is not defined