def close(self):
    'User requested close.'
    if (self.initial != os.getcwd()):
        _changeDirectory(self.initial)
User requested close.
def close(self):
    
    if (self.initial != os.getcwd()):
        _changeDirectory(self.initial)