def start_stub(name):
 service = SERVICES.get(name, None)
 if service:
  fake_server = service['class'](port_num=service['port'])
  setattr(world, name, fake_server)

def start_stub ( name ) : service = SERVICES . get ( name , None ) if service : fake_server = service [ 'class' ] ( port_num = service [ 'port' ] ) setattr ( world , name , fake_server )
start the required stub service running on a local port .