def get_pid(self):
    pid = os.getpid()
    p = psutil.Process(pid)
    self.pid = pid
    self.pid_hash = hash(p)
def get_pid(self):
    pid = os.getpid()
    p = psutil.Process(pid)
    self.pid = pid
    self.pid_hash = hash(p)