add query option to setup_repo.py for use in puppet