added exploration algorithm and python scripts for state machine