fix PEP8 warnings on utils.py