Use items() instead of iteritems()
Do not use deprecated unicode function
Use assertEqual for lists
Use 2to3 for Python 3 support