Taking some of the pain out of Python's DB-API