Update event.py to be compatible with python2.6.7 

correct me if I'm wrong but it seems that you can omit the number in python 2.7 but not python 2.6.7.
Merge pull request #99 from cccc1999/patch-1

Update event.py to be compatible with python2.6.7