<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def acquire(self):
 """Acquire the lock Raises: IOError: if the call to flock fails """

        self._fd = open(self._path, mode='w+')
        os.chmod(self._path, 0o660)
        fcntl.flock(self._fd, self._op)