Fix state_goto_path method
Add missing API methods in sock.py