changing screen layout by script

i am not sure if this is possible, but i would like to setup my screen view by a script; thus changing the current view to another view, still in the same layout mode dough (add pannels / set camera options / render options )

the script logger doesnt show anything when one adjust the sizes of screens or add split or merge screens, so i am not sure if this can be done, some code hints would be great