Import cleanup in random_walk.