* ams_glossary.py: minor refactoring, no code change

Signed-off-by: Yakkala Yagnesh Raghava <hi@yagnesh.org>