title: How to save ctypes objects containing pointers
body: <p>I use a 3rd party library which returns after a lot of computation a ctypes object containing pointers.</p>
  
  <p>How can I save the ctypes object and what the pointers are pointing to for later use?
  I tried </p>
  
  <ul>
  <li><code>scipy.io.savemat</code> => TypeError: Could not convert object to array</li>
  <li><code>cPickle</code>  => ctypes objects containing pointers cannot be pickled</li>
  </ul>