Refactored newevt.py. Better design and onmsg events no longer waste CPU with no-op polls