class Record(object):
    pass
r = Record()
r.foo = 'oof'
setattr(r, 'bar', 'rab')
r.foo
r.bar
names = 'id description price'.split()
values = [666, 'duct tape', 3.45]
s = Record()
for name, value in zip(names, values):
    setattr(s, name, value)
s.__dict__
How can you dynamically create variables via a while loop?