<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def lock_pid(self):
 """ Get the pid of the lock. """

        
        if os.path.exists(self.lock_filename):
            return int(open(self.lock_filename).read())
        else:
            return None