Attempt to provide better error messages for busted python environments.

This aims to help with #644 where we cannot get python package metadata
without having json and setuptools available from the python program
we are invoking.