title: How to change function parameter values in a Python 3 C extension?
body: <p>I can't figure out how to change the value of a parameter passed from Python to C. </p>
  
  <pre><code>PyArg_ParseTuple (args, "Os", &amp;file_handle, &amp;filename)
  </code></pre>
  
  <p>will let me get file_handle as a <code>PyObject *</code>. Is there a way to change the value <code>file_handle</code> represents? I know I can return multiple values to a Python function call, but that isn't what I want to do in this case. Just for consistency with the C API I am making a module to represent.</p>