can't copy xlsx and xlsm files with xlrd as it says "formatting info= True" not yet implemented and openpyxl runs out of memory when doing the following:
import xlrd
from xlutils.copy import copy
from openpyxl import load_workbook
if file_format == 'xls':
input_file=xlrd.open_workbook(input_file_location,formatting_info=True)
wb = copy(input_file)
wb.save(destination_file)
if file_format == 'xlsx' or file_format == 'xlsm' :
input_file = load_workbook(input_file_location,data_only=True)
input_file.save(destination_file)