Use six iteritems to be compatable with python3