code: def unorm(v1):
      
      v1 = stypes.toDoubleVector(v1)
      vout = stypes.emptyDoubleVector(3)
      vmag = ctypes.c_double()
      libspice.unorm_c(v1, vout, ctypes.byref(vmag))
      return stypes.cVectorToPython(vout), vmag.value
docs: Normalize a double precision 3-vector and return its magnitude.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/unorm_c.html
  
      :param v1: Vector to be normalized. 
      :type v1: 3-Element Array of floats
      :return: Unit vector of v1, Magnitude of v1.
      :rtype: tuple