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.