pym.addAttr(sel[0], longName="ieCacheType", dt="string" )
Since your selected node has methods you could just call straight off the node itself
sel[0].addAttr("ieCacheType", dt="string")
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe