Function to export a dictionary to a csv file
    Args:
        orig_dict: The dictionary you want exported
        file_name: The name of the exported file
        field_names_tuple: The fieldnames in a tuple
        file_location: The location of the file, derive from the os module

    Returns: returns the filename info

def dict_to_csv(orig_dict, file_name, field_names_tuple, file_location):
    """
    Function to export a dictionary to a csv file
    Args:
        orig_dict: The dictionary you want exported
        file_name: The name of the exported file
        field_names_tuple: The fieldnames in a tuple
        file_location: The location of the file, derive from the os module

    Returns: returns the filename info

    """
    file = __os.path.join(file_location, file_name)
    csv_write = open(file, 'a')
    writer = __csv.DictWriter(csv_write, fieldnames=field_names_tuple, lineterminator='\n')
    headers = dict((n, n) for n in field_names_tuple)
    writer.writerow(headers)
    for dict_key, a in list(orig_dict.items()):
        writer.writerow(orig_dict[dict_key])
    csv_write.close()
    return file_name