def _render_template(template, destination, **kwargs):
    """Render a template into a file destination.
    :param template: A text template to be rendered
    :param destination: Destination file name.
    :param kwargs: Arguments for the template render."""
    content = template.format(**kwargs)
    with open(destination, 'w') as f:
        f.write(content)
    return destination