It is hard to debug MP REST errors with the basic exception message. This adds the response content when available
Merge branch 'master' of github.com:materialsproject/pymatgen