pylint fixes
use setattr in instance factories

in class factory functions, setattr() {probably, hopefully}
does a better job conveying the meaning we're doing something
out of the ordinary. The final risult is of course the same,
but hopefully we're now raising a flag to catch the programmer
attention. And pylint no longer complains :)