'Close file in destructor if it hasn\'t been closed explicitly.'

def __del__(self):

    try:
        if (not self.fileclosed):
            self.close()
    except:
        raise Exception('Exception    caught    in    workbook    destructor.    Explicit    close()    may    be    required    for    workbook.')
