thanks for your replies guys ... I did in the end use the provided matrix to convert the deformer to local space and it works but slow... As Chad and Viktoras say deformers are probably best done in C ... but it was useful using the python api as a prototype.
-- http://groups.google.com/group/python_inside_maya
