In python 3, if the dict is changed in the loop, there will be
following error:
RuntimeError: dictionary changed size during iteration
Tranfrom dict with list() to fix it.
Partial implements: blueprint py33-support
Change-Id: I4b9f5bc083ebe62739a33674d26728d4a8f1a2d6