* avoid hosts 'pre templated warnings' fixed is_template failing on undefined fixes #23057 * py3 compat