Fix some pep8 in detect.py
More pep8 fixes.
Merge pull request #18 from chmouel/pep8

Fix some pep8 in detect.py