backport small pyevent changes
fix wrong test
Merge pull request #16 from oroulet/oroulet

fix test, small event improvment