Objectchooser preview try3

This pull fixes pyflake errors found by manuq, connect the clear-query signal, and fixes a issue with the reset of the query.