move safe_setattr inside ComplexModel as instance method
minor