Updates to snippets.py - this is currently broken as the pop("command") fails
on a KeyError.