reorg, fixes and finish exposing events in python