def get_security(self): self.dllock.acquire() try: return DownloadConfigInterface.get_security(self) finally: self.dllock.release()