event propogation for python