how to take images with multiple cameras with Script? To be clear i want a script, which produces what i am describing below.
I want to iterate through all the cameras in my scene where each one renderes an image. I can do this manually by rendering with active camera, then set another camera to active, and then render again. 

I have five cameras in my scene and i am going to be using this scene a lot.
in reality the question might be more about setting a camera to active with script.
You might want to edit the os.path.join to get an OS independent tmp directory or set something else.

import bpy
import os

scene = bpy.context.scene

for ob in scene.objects:
    if ob.type == 'CAMERA':
        bpy.context.scene.camera = ob
        print('Set camera %s' % ob.name )
        file = os.path.join("C:/tmp", ob.name )
        bpy.context.scene.render.filepath = file
        bpy.ops.render.render( write_still=True )