Micron Technology interview question

python code for parsing verilog code