Switch dict.iteritems() to .items() for python 3

  - .iteritems() was removed in python 3, so switch to using
     .items() which is just as good for our usage
Switch to use standard logging

  - My logger clashed with the built-in one, so switch to using that