PY: support primary/foreign key constraints in ORAL.