the python version of random_walk_simulator