Just a short example how you can create a VLANs on Cisco switch.
Using Linux machine for executing the python and GNS3 Cisco Ether-switch


Just trying to get it working, this is def. not an example how the production program should look like, at least the loop and more variables could be used here, but for now only hard-coding the stuff :)