<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scencd(sc, sclkch, MXPART=None):
 """ Encode character representation of spacecraft clock time into a double precision number. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scencd_c.html :param sc: NAIF spacecraft identification code. :type sc: int :param sclkch: Character representation of a spacecraft clock. :type sclkch: str :param MXPART: Maximum number of spacecraft clock partitions. :type MXPART: int :return: Encoded representation of the clock count. :rtype: float """

    sc = ctypes.c_int(sc)
    sclkch = stypes.stringToCharP(sclkch)
    sclkdp = ctypes.c_double()
    libspice.scencd_c(sc, sclkch, ctypes.byref(sclkdp))
    return sclkdp.value