do_something_hereyour walk script
do_something_here(arguments)function to your Python script
do_something_herein your walk script, it will pass it over to your Python script. All script commands are passed to Python whether you have a function for it or not.
return 0is for how many milliseconds to sleep. This is necessary because the bot must lock the Python interpreter in order to keep everything thread safe. If you slept manually and another thread attempted to call one of your functions, it would block until you returned from the function and the global interpreter lock was released.
listand sent to your Python script.