'Activated when used in the with statement.
Should automatically acquire a lock to be used in the with block.'

def __enter__(self):

    if (not self.is_locked):
        self.acquire()
    return self
