demo_reinit -> reinit
pep8 fix
Removed the magic of getattr()
fixed coding style: pep8/ulib
Some pylint fixes