query2.py trying to create a new list of structs for each document which contains any query term