def unfreeze_threads(pid): System.request_dubug_privileges() process = Process(pid) process.scan_thread() for thread in process.iter_threads(): thread.resume()