Flake errors

This should resolve most of https://github.com/openspending/openspending/issues/690