def addXMLFromLoopComplexZ(attributes, depth, loop, output, z):
 addBeginXMLTag(attributes, depth, 'path', output)
 for pointComplexIndex in xrange(len(loop)):
  pointComplex = loop[pointComplexIndex]
  addXMLFromXYZ((depth + 1), pointComplexIndex, output, pointComplex.real, pointComplex.imag, z)
 addEndXMLTag(depth, 'path', output)

def addXMLFromLoopComplexZ ( attributes , depth , loop , output , z ) : addBeginXMLTag ( attributes , depth , 'path' , output ) for pointComplexIndex in xrange ( len ( loop ) ) : pointComplex = loop [ pointComplexIndex ] addXMLFromXYZ ( ( depth + 1 ) , pointComplexIndex , output , pointComplex . real , pointComplex . imag , z ) addEndXMLTag ( depth , 'path' , output )
add xml from loop .