implemented event parser
added test case for the event parser (WIP)
python 2 compatibility