setattr is definitely not the way to do it