title: async exec in python
body: <p>I'd like to call exec in an async function and do something like the following code (which is not valid):</p>
  
  <pre><code>import asyncio
  
  async def f():
      await exec('x = 1\n' 'await asyncio.sleep(x)')
  </code></pre>
  
  <p>More precisely, I'd like to be able to wait for a future inside the code that runs in exec. </p>
  
  <p>How can this be achieved?</p>