<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def convrt(x, inunit, outunit):
 """ Take a measurement X, the units associated with X, and units to which X should be converted; return Y the value of the measurement in the output units. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/convrt_c.html :param x: Number representing a measurement in some units. :type x: float :param inunit: The units in which x is measured. :type inunit: str :param outunit: Desired units for the measurement. :type outunit: str :return: The measurment in the desired units. :rtype: float """

	
    inunit = stypes.stringToCharP(inunit)
    outunit = stypes.stringToCharP(outunit)
    y = ctypes.c_double()
    if hasattr(x, "__iter__"):
        outArray=[]
        for n in x:
            libspice.convrt_c(n,inunit,outunit,ctypes.byref(y))
            outArray.append(y.value)
        return outArray
	
    x = ctypes.c_double(x)
    libspice.convrt_c(x, inunit, outunit, ctypes.byref(y))
    return y.value