BLD: ci/print_versions.py learned to output json

Putting some pieces in place.