You're getting the value a few lines later anyway, so you can just use `metadata.iteritems` here.