MNT: Fixed bugs in query_widget

nuke the print statements?