<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def namfrm(frname):
 """ Look up the frame ID code associated with a string. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/namfrm_c.html :param frname: The name of some reference frame. :type frname: str :return: The SPICE ID code of the frame. :rtype: int """

    frname = stypes.stringToCharP(frname)
    frcode = ctypes.c_int()
    libspice.namfrm_c(frname, ctypes.byref(frcode))
    return frcode.value