Update Query_objects.py

Combined everything