add first rough draft of bayes-query.py