Python script to help construct Moloch Queries