Fixed pylint error(E1101)

A dynamically created member made pylint
complain.