code: def pid(self):
          
          try:
              return self._pid
          except AttributeError:
              self._pid = os.getpid()
              return self._pid
docs: The pid of the process associated to the scheduler.