generate.py: only generate ranges when the key starts with @