make simplifications to the state machine. modify packet_3.py to deal with 32 bit typecasting issue.