Refactor jedi-completer to use a worker thread