RMK-475  add support to query.py to override the printing to sys.stdout with an "out" parameter that must support the "write" method.
RMK-475  add support to query.py to override the printing to sys.stdout with
an "out" parameter that must support the "write" method.

fedora-conary/rmake-2,fedora-conary/rmake-2,fedora-conary/rmake-2,fedora-conary/rmake-2