title: Python & SWIG: Using StringIO in place of FILE*
body: <p>I have the following method which I wrap using SWIG to access it in Python:</p>
  
  <pre><code>void some_class::some_method( FILE *fp, int *pT, int **pO ) {
      fscanf( fp, "lalala", pT );
  </code></pre>
  
  <p>How is it possible to pass a StringIO for the first argument? What typemap should I use?</p>