def remove_duplicates(names, versions, versions_dict):
    """Remove the versions that exist in versions_dict.

    Args:
        names (list): A list with names
        versions (list): A list with versions
        versions_dict (dict): A dict names as keys

    versions_dict example:
        {'name': {'version': 'foo', ...}, ...}

    Returns:
        new_names (list): A list with names
        new_versions (list): A list with versions

    """
    new_names = list()
    new_versions = list()
    for proj in zip(names, versions):
        if proj[0] in versions_dict.keys() and\
           proj[1] in versions_dict[proj[0]].keys():
            continue
        new_names.append(proj[0])
        new_versions.append(proj[1])
    return new_names, new_versions