intent: How can I convert a Python dictionary to a list of tuples?
rewritten_intent: convert python 2 dictionary `a` to a list of tuples where the value is the first tuple element and the key is the second tuple element
snippet: [(v, k) for k, v in a.items()]