def import_data(workbook, sheet, format, filename):
    workbook.import_data(format, filename, sheet)


def export_data(workbook, sheet, format, filename):
    sheet = workbook.sheets[sheet]
    data = sheet.export_data(format)
    with open(filename, 'wb') as fh:
        fh.write(data)


def print_data(workbook, sheet):
    sheet = workbook.sheets[sheet]
    sheet.print_data()

def import_data(workbook, format, filename, sheet, headers, encoding):
    workbook.import_data(format, filename, sheet, headers, encoding)


def export_data(workbook, sheet, format, filename):
    sheet = workbook.sheets[sheet]
    data = sheet.export_data(format)
    with open(filename, 'wb') as fh:
        fh.write(data)


def print_data(workbook, sheet):
    sheet = workbook.sheets[sheet]
    sheet.print_data()

fix arguments order in import_data operation