key.split(".", limit=2) may help too
# announcements
a
key.split(".", limit=2) may help too