def __exit__(self, exc_type, exc_val, exc_tb):
    if self._prev_pwd:
        self.__class__(self._prev_pwd, logsuffix='(coming back)')
def __exit__(self, exc_type, exc_val, exc_tb):
    if self._prev_pwd:
        self.__class__(self._prev_pwd, logsuffix='(coming back)')