Create tpQuery.py

Initial check-in to github