def acquire(self):
self._fd = open(self._path, mode='<STR_LIT>')<EOL>os.chmod(self._path, <NUM_LIT>)<EOL>fcntl.flock(self._fd, self._op)<EOL>
Acquire the lock

        Raises:
            IOError: if the call to flock fails