Oh wow... I mean no offence, but throw away that curl to python thingy. That is horrendous code to read! **EDIT** I take that back. Your post changed. It's WAY more readable now. ** I would love to help you here, but it'll have to wait till later today. Honestly, I wouldn't try fixing this code, instead I'd help you write new code that's pure python instead of this hybrid stuff the converter has given you. If no one hasn't helped by the time I get home later I'll circle back here and help out. In the meantime, here's a bit of a shameless plug with code examples for creating VLANs. Not exactly what you're trying to do, but it might help you get started. http://blog.brokennetwork.ca/2019/06/meraki-action-batches-in-action.html Maybe look at just the first non-action batches example in that post and ignore the second one for now.
... View more