def profiles_file_values(profiles, generation_number):
    """Return a dict usable with csv.DictWriter for profiles file"""
    means, varc = profiles
    means = {'mean'+str(k[0])+'x'+str(k[1]): v for k,v in means.items()}
    varc  = {'varc'+str(k[0])+'x'+str(k[1]): v for k,v in varc.items()}
    # return all
    means.update(varc)
    means['generation'] = generation_number
    return means