code: def lock_pid(self):
          
          
          if os.path.exists(self.lock_filename):
              return int(open(self.lock_filename).read())
          else:
              return None
docs: Get the pid of the lock.