discover.py: extract tags