976435 - load puppet importer config from a file using a common method.
Remove assertDictEqual which is not compatible with python 2.4
Move import to top of the file
Wrap the file processing in a try/finally to ensure that the file handle is always closed properly.
Merge pull request #634 from pulp/barnabycourt-976435

976435 - Create common method to load json configuration files