Update ac_ping.py

remove unnecessary 'global state' statement from set_state