def format_resolve_template(template_in, format_variables):
    """Renders the given Resolve template with the given Python dict. The
    result is always Resolve safe. Meaning that variables like "%{Clip Type}"
    will be preserved if the given ``format_variables`` doesn't alter it.

    :param str template_in: A string
    :param dict format_variables:
    :return:
    """
    return template_in.replace("{", "(").replace("}", ")s") % format_variables