code: def unlock_file(filename):
      
  
      lockfile = "%s.lock"%filename
      if isfile(lockfile):
          os.remove(lockfile)
          return True
      else:
          return False
docs: Unlocks the file by remove a '.lock' file.
         Returns True when the file is unlocked and
         False when the file was unlocked already