SQLAlchemy containership with traversal