import json from boto.compat for several modules
Merge pull request #2450 from felixonmars/import-fixes

import json from boto.compat for several modules. Fixes #2450.