pep8 and checking for USHRT_MAX, as described here https://github.com/python-excel/xlwt/issues/10