code: def ekopw(fname):
      
      fname = stypes.stringToCharP(fname)
      handle = ctypes.c_int()
      libspice.ekopw_c(fname, ctypes.byref(handle))
      return handle.value
docs: Open an existing E-kernel file for writing.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekopw_c.html
  
      :param fname: Name of EK file.
      :type fname: str
      :return: Handle attached to EK file.
      :rtype: int