list of material with color

i began a loop to print all object and would like to print the material name and color RGb

now each object may have more than one material
and i wold like to also read each of the RGB values then make a test and change it if required to anothere color or material

here the little loop


for i in selection:
# print name and location
 print 'object name =', i.name 
 print 'loc = ',i.loc
 print
 print
 
 clox=ob.LocX
 cloy=ob.LocY
 cloz=ob.LocZ
 print ' Center clox =',clox,' cloy = ',cloy,' cloz =',cloz
 

 me = B.Mesh.Get( ob.data.name )
 print 'me  ob.data name =',me
 for f in me.faces:
#  f.mat = 0
  print 'Mat = ',f.mat,' f = ',f,'Mat col = ',me.mat.rbgcol
#


can someone help to make this loop work well

Thanks