'Accepts a template object, path-to-template or list of paths'

def resolve_template(self, template):

    if isinstance(template, (list, tuple)):
        return loader.select_template(template)
    elif isinstance(template, six.string_types):
        return loader.get_template(template)
    else:
        return template
