Fix data type of debug, we should use integer
Define __hash__ of DASQuery object, it should accompany already defined __eq__ method to avoid incompatibilities with python3