<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def spkw17(handle, body, center, inframe, first, last, segid, epoch, eqel, rapol, decpol):
 """ Write an SPK segment of type 17 given a type 17 data record. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw17_c.html :param handle: Handle of an SPK file open for writing. :type handle: int :param body: Body code for ephemeris object. :type body: int :param center: Body code for the center of motion of the body. :type center: int :param inframe: The reference frame of the states. :type inframe: str :param first: First valid time for which states can be computed. :type first: float :param last: Last valid time for which states can be computed. :type last: float :param segid: Segment identifier. :type segid: str :param epoch: Epoch of elements in seconds past J2000. :type epoch: float :param eqel: Array of equinoctial elements. :type eqel: 9-Element Array of floats :param rapol: Right Ascension of the pole of the reference plane. :type rapol: float :param decpol: Declination of the pole of the reference plane. :type decpol: float """

    handle = ctypes.c_int(handle)
    body = ctypes.c_int(body)
    center = ctypes.c_int(center)
    inframe = stypes.stringToCharP(inframe)
    first = ctypes.c_double(first)
    last = ctypes.c_double(last)
    segid = stypes.stringToCharP(segid)
    epoch = ctypes.c_double(epoch)
    eqel = stypes.toDoubleVector(eqel)
    rapol = ctypes.c_double(rapol)
    decpol = ctypes.c_double(decpol)
    libspice.spkw17_c(handle, body, center, inframe, first, last, segid, epoch,
                      eqel, rapol, decpol)