Added detect.py