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

testspass in 3.3 with the changes here