code to use setattr rather thah class-dictionary modifications.
Attach a file by drag & drop or click to upload