Find the name of textures linked to an object in python? How can I find out the name of a texture linked to an object? 

Is there an image operator to find this out? 

I searched in forums but wasn't able to find a working script, I tried this script:

import Blender
from Blender import*
img = ''
sel = bpy.context.object.name
if sel:
me = sel[0].getData(mesh=True)
for f in me.faces:
    if f.image:
        img = f.image.name
        print (img)


But the code doesn't work in my python console with Blender 2.68.

How could we find what are all the images in an object and its name and path?
This is a more direct version of the original script.

import bpy

obj = bpy.context.object
if obj:
    me = obj.data
    if me.uv_textures.active is not None:
        for tf in me.uv_textures.active.data:
            if tf.image:
                img = tf.image.name
                print(img)


Note that you now need to access the face's image though the uv_textures data-layer, in this case we assume one exists and choose the active one. me.uv_textures["UVTex.001"].data would work too if its present.