cycles jpg texture choosing in python

I have an object with a face that has a material applied, with image texture already opened, and I need to choose a jpg directly from python, because will do this lots of times…

then I need to uv unwrap in python.

anyone knows how? thanks

lol, solved it by doing the following:

bpy.ops.uv.unwrap(method=‘ANGLE_BASED’, fill_holes=True, correct_aspect=True, use_subsurf_data=False, margin=0.001)

cheers o/