import csv


def store_dict_csv(path, **kwargs):
    f = open(path, 'w', encoding='utf-8')
    writer = csv.writer(f)
    for key, val in kwargs.items():
        writer.writerow([key, val])
    f.close()


def deprecated(obj, warning='Deprecated method.'):
    def decorate(*args, **kwargs):
        print('WARNING: %s' % warning)
        return obj(*args, **kwargs)
    return decorate

import csv


def store_dict_csv(path, **kwargs):
    f = open(path, 'w', encoding='utf-8')
    writer = csv.writer(f)
    for key, val in kwargs.items():
        writer.writerow([key, val])
    f.close()


def deprecated(obj, warning='Deprecated method.'):
    def decorate(*args, **kwargs):
        print('WARNING: %s' % warning)
        return obj(*args, **kwargs)
    return decorate
