def start_authorization_flow(self):
    ctx = _mp_get_context('fork')
    q = ctx.Queue()
    server = self._create_callback_server()
    server_process = ctx.Process(target=server.handle_request, args=(q,))
    server_process.daemon = True
    server_process.start()
    self._request_authorization_code()
    auth_code = q.get()
    server_process.terminate()
    self.request_access_token(auth_code)
def start_authorization_flow(self):
    ctx = _mp_get_context('fork')
    q = ctx.Queue()
    server = self._create_callback_server()
    server_process = ctx.Process(target=server.handle_request, args=(q,))
    server_process.daemon = True
    server_process.start()
    self._request_authorization_code()
    auth_code = q.get()
    server_process.terminate()
    self.request_access_token(auth_code)