python: two versions of def depending on setting
<p>I have a program that runs on two platforms. Each platform has a different set of imported modules. Many of the def statements on one platform need an additional parameter to run with its set of imports.  Not every def statement needs to be changed.  </p>

<p>If something like this worked, it would be make things easier:</p>

<pre><code>if platform_1:
   def func(this, that):
else:
   def func(self, this, that):

   func_body
</code></pre>

<p>Is there any way do do this?</p>
