Thanks for the reply,
After playing around with it for a while, I discovered my problem. The
object returned by the select() method doesn't display in a web
browser. However, using the fields within that works. So with my
example from before,
print db.select(['priority'], priority = 5)
will print an empty list. But doing:
set = db.select(['priority'], priority = 5)
for record in set:
print record.priority
works perfectly.