in reply to very sloooooow!

  1. Use the script with your prints going to a file or console instead of the network. See what difference that makes.
  2. Apply a profiler (as in the post above) to the remainder and see what is slow.
  3. Fix whatever code is slow / occurs right after the point it stops making progress.