Fix for python 3

You can no longer add the the result of dict.items()