Well, in Blender, how can I create a new material, assign it to the current object, create an image texture and assign it and then open an image for it (and also open the image in the UV/Image Editor)?
I would suggest reading the Blender API Python Cookbook on the Blender wiki. It has sections for each of the features that you want with code examples.