As promised in the previous post, here's a quick sample Action Batches script.
I've actually got two for you. Both scripts create two new networks, and then create five VLANs inside those two networks. The script 'example1.py' creates all of this using individual API calls for each create action. The 'example2.py' script uses action batches instead of individual API calls.
For fun I'm also using timeit to compare how long each script takes to do the same thing.