deps/npm: Use print() function on both Python 2 and 3
A subset of #23669 to simplify the review process. @refack @addaleax
The openssl change was merged into upstream in openssl/openssl#7409
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines