import Blender

print '\n*** World Test ***\n'

list = Blender.World.Get()
print "available worlds",list

w = Blender.World.Get("World")

#for param in ["Name","Colormodel","Fastcol","Skytype","Mode","Totex","Texact","Mistype","Hor","Zen","Amb","Star","Dof","Mist"]:
for param in ["Name","Skytype","Mistype","Hor","Zen","Amb","Star","Mist"]:
    val = eval("w.get%s()"%param)
    print param,val
    val1 = eval("w.set%s(val)"%param)
    print val1


for param in ["name","skytype","mode","mistype","hor","zen","amb","star","mist"]:
    exec("val  = w.%s"%param)
    print param,val
    exec ("w.%s = val"%param)

    
