use setattr instead of double underscores

If you are happy with such a change, it would prevent some warnings from our deployment tools.