Update detect_tokens.py