sender.py: load queries from a file if given, and not random generate every run. thread safe.