import asyncio
import time
from concurrent.futures import ProcessPoolExecutor

def cpu_bound_operation(x):
    time.sleep(x)

@asyncio.coroutine
def main():
    pass
How to combine python asyncio with threads?