Allow all python query methods to take and return flat objects (#1495)
Allow all python query methods to take and return flat objects (#1495)

* Allow all python query methods to take and return flat objects

* Fix errors

cseed/hail,hail-is/hail,hail-is/hail,danking/hail,cseed/hail,danking/hail,hail-is/hail,cseed/hail,danking/hail,danking/hail,cseed/hail,hail-is/hail,hail-is/hail,hail-is/hail,danking/hail,hail-is/hail,cseed/hail,danking/hail,hail-is/hail,cseed/hail,danking/hail,danking/hail,cseed/hail,cseed/hail