code: def get_threads(self):
          
          thread_list = {}
          for thread in threading.enumerate():
              thread_ident = thread.ident
              thread_list[thread_ident] = {
                  "ident": thread_ident,
                  "name": thread.name,
                  "is_debugger": thread_ident == self.debugger_thread_ident,
                  "is_debugged": thread_ident == self.debugged_thread_ident
              }
          return thread_list
docs: Returns a dict of all threads and indicates thread being debugged.
          key is thread ident and values thread info.
          Information from this list can be used to swap thread being debugged.