'Mesh' object has no attribute 'faces'
Faces are now accessible in Mesh.polygons. But seeing that your reference is so outdated, there may be other deprecated API usage in your script. So far, this link is always redirected to the latest Blender Python API manual, you may want to refer to it instead.