Detect if xlwt is enabled, default to CSV output if it isn't.
remove trailing spaces