def file_variations(filename, extensions):
    """Create a variation of file names.

    Generate a list of variations on a filename by replacing the extension with
    a the provided list.

    :param filename: The original file name to use as a base.

    :param extensions: A list of file extensions to generate new filenames.
    """
    (label, ext) = splitext(filename)
    return [label + extention for extention in extensions]