def is_excluded_file(filename, excluded_files):
    """ Check if the given file (filename) must be exluded

    Arguments:
        filename {string} -- name of the file to check
        excluded_files {list} -- list of files or extensions to exclude

    Returns:
        True -- if the filename contains one or more elements on excluded_files
        False -- if otherwise
    """
    for ex in excluded_files:
        if filename.endswith(ex):
            return True
    return False