import bpy bpy.ops.mesh.primitive_monkey_add() obj = bpy.context.active_object for v in obj.data.vertices: v.co.z *= 3