If your using the Create Hair tool, you are making a lot of cleanup work for yourself and your script. If you make a plane and ad a single follicle to it you can see how the nodes are connected. Reverse engineer that and you can create a single follicle using
createNode follicle;
Connect everything:
Connect the mesh shape to the follicle shape: outMesh to inputMesh and worldMatrix to inputWorldMatrix
then connect the shape follicle to the actual follicle: outRotate to rotate and outTranslate to translate.
Sample:
// Create Objects
polyPlane -ch on -o on -w 8 -h 8 -sw 1 -sh 1 -cuv 2 ;
rename "plane";
createNode follicle;
pickWalk -d up;
rename "fcl_01";
// Connect Objects
connectAttr -f planeShape.outMesh fcl_0Shape1.inputMesh;
connectAttr -f planeShape.worldMatrix[0] fcl_0Shape1.inputWorldMatrix;
connectAttr -f fcl_0Shape1.outRotate fcl_01.rotate;
connectAttr -f fcl_0Shape1.outTranslate fcl_01.translate;
// center Object On Plane
setAttr "fcl_0Shape1.parameterU" 0.5;
setAttr "fcl_0Shape1.parameterV" 0.5;