python3.3 updating: iteritems() -> items() & {}.format syntax

tests pass in 2.7.3 & 3.3.0 with the changes here