* ams_glossary.py: small refactoring.

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