code: def pid(self):
          
          pf = self.path('cmd.pid')
          if not os.path.exists(pf):
              return None
          with open(pf, 'r') as f:
              return int(f.read())
docs: The integer PID of the subprocess or None.