PEP8 warnings fixed in tep.py