Tidying up the __all__ in detect.py