I'm sorry to tell a bad question, actually I have a set of MySQL dump file and I want to parse these files with Python and extracting valuable information from them.

in parsing operation i have 3 state as follow:
[enter image description here](https://i.stack.imgur.com/WjlZZ.png)

In your opinoin how i can handle this 3 state?