Remove two unneeded prints from test_query.

These two prints were causing test_query to fail with python3.