Use ``.items()``, so that it works with python3.