'Copy fields from this context to the record'

def copy_to(self, record):

    for (key, value) in self.__dict__.items():
        setattr(record, key, value)
    (record.ru_utime, record.ru_stime) = self.get_resource_usage()
