import maya.cmds as cmds
# import rfm2.api.strings as apistr; import starter_proc; starter_proc.setDataStr(apistr.expand_string("<shape>"))
def setDataStr(shapeName):
num = str(cmds.getAttr(shapeName + '.num_spheres'))
rad = str(cmds.getAttr(shapeName + '.radius'))
text = rad + " " + num + " "
cmds.setAttr(shapeName + '.data', text, type='string')