<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def lparse(inlist, delim, nmax):
 """ Parse a list of items delimited by a single character. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparse_c.html :param inlist: list of items delimited by delim. :type inlist: list :param delim: Single character used to delimit items. :type delim: str :param nmax: Maximum number of items to return. :type nmax: int :return: Items in the list, left justified. :rtype: list of str """

    delim = stypes.stringToCharP(delim)
    lenout = ctypes.c_int(len(inlist))
    inlist = stypes.stringToCharP(inlist)
    nmax = ctypes.c_int(nmax)
    items = stypes.emptyCharArray(lenout, nmax)
    n = ctypes.c_int()
    libspice.lparse_c(inlist, delim, nmax, lenout, ctypes.byref(n),
                      ctypes.byref(items))
    return [stypes.toPythonString(x.value) for x in items[0:n.value]]