BLD: ci/print_versions.py learned to output json

Contortions due to lack of OrderedDict in 2.6
Should be runnable indep. from pandas.compat being available
Avoid duplicating the OD polyfill here as well. Oh well.