The python version was failing cryptically. For scripts that access the DB, I'd like to move from Python to PHP, so that we have one less DB layer to maintain.