def clean(out_f):
    """ Remove duplicates from output file """
    file_l = open(out_f).readlines()
    new_file_l = list(set(file_l))
    open(out_f, 'w').write(''.join(new_file_l))
    del file_l
    del new_file_l
