Fixed some bugs in the port to 3.4

I worked with @simpeloquin yesterday to port your module to 3.4, but working with it today I realized we missed a few details to have it work properly. Those two commits should fix issues with importing the library and using the Query class without initializing all of its attributes.

If you have any questions, don't hesitate to ask!