utils.py: Workaround TypeError with Python 2.7.13 in Windows