Some refactoring. Also allow module functions to be asyncio coroutines
Add %py command using sandboxed PyPy instance