'Initialize and acquire the lock file.
:param str path: path to the file to lock
:raises errors.LockError: if unable to acquire the lock'

def __init__(self, path):

    super(LockFile, self).__init__()
    self._path = path
    self._fd = None
    self.acquire()
