'Retrieve the actual pid'

def get_pid(self):

    try:
        pf = open(self.get_path())
        pid_s = pf.read()
        pf.close()
        return int(pid_s.strip())
    except Exception:
        return None
