Improve speed on filtering event
Speedup event filtering

I got a 30% boost on my computer for a simple
benchmark.
Python 3 support fix thanks to travis
Cleanup after @bjoernhaeuser feedback
Merge pull request #90 from noplay/speedup

Speedup event filtering