Add get_assertions_by_badge.
Adjust some indentation.
PEP 8.