def METHOD_NAME(address, output, headers):
    does_exist = os.path.isfile(address)
    with open(address, 'a') as csvfile:
            writer = csv.DictWriter(csvfile, fieldnames=headers, lineterminator = '\n')
            if (does_exist==False): writer.writeheader()
            writer.writerow({headers[x]: output[x] for x in range(len(headers))})