how to parse event in lambda python