How do you stretch an object from multiple vertices using a python script?
It'll be something like this, assuming Icosphere at origin.
Note: you have to start in Edit mode for some reason, otherwise it throws an error.

import bpy
import bmesh

obj  = bpy.data.objects['Icosphere'] ## set name
mesh  = bpy.data.meshes['Icosphere']

bpy.ops.object.mode_set(mode = 'EDIT')
bm  = bmesh.from_edit_mesh( mesh )

minX  = 0
corners  = obj.bound_box
trans  = bpy.ops.transform

for corner in range(len(corners)):
  x = corners[corner][0]
  if x &lt; minX:
    minX  = x

for v in range(len(bm.verts)):
  vert = bm.verts[v]
  if vert.co.x == minX:
    vert.select_set(1)
  else:
    vert.select_set(0)

trans.translate( value = (-5, 0, 0), 
                 constraint_axis = (False, False, False), 
                 constraint_orientation = 'GLOBAL', 
                 mirror = False, 
                 proportional = 'ENABLED', 
                 proportional_edit_falloff = 'SMOOTH', 
                 proportional_size = 2 )

trans.resize(value = (0.3, 0.3, 0.3), 
             constraint_axis = (False, False, False), 
             constraint_orientation = 'GLOBAL', 
             mirror = False, 
             proportional = 'ENABLED', 
             proportional_edit_falloff = 'SMOOTH', 
             proportional_size = 2 )