def device(device_type, frontend, backend, gevent=False): if gevent: from zmq.green import device else: from zmq import device device(device_type, frontend, backend)