Update detectors.py