python usando string para acessar objetos

getattr(object, attrname)
setattr(object, attrname, value)
Real Raccoon