code: def __geomToPointList(self, geom):
          
          if arcpyFound and isinstance(geom, arcpy.Polyline):
              feature_geom = []
              fPart = []
              wkt = None
              wkid = None
              for part in geom:
                  fPart = []
                  for pnt in part:
                      if geom.spatialReference is None:
                          if self._wkid is None and self._wkt is not None:
                              wkt = self._wkt
                          else:
                              wkid = self._wkid
                      else:
                          wkid = geom.spatialReference.factoryCode
                      fPart.append(Point(coord=[pnt.X, pnt.Y],
                            wkid=wkid,
                            wkt=wkt,
                            z=pnt.Z, m=pnt.M))
                  feature_geom.append(fPart)
              return feature_geom
docs: converts a geometry object to a common.Geometry object