Based on @Gordon Linoff answer and with two tables A and B where A has a relation one-
to-many towards B called A.bs the SqlAlchemy equivalent would be:
from sqlalchemy import func
session.query(A).join(B).filter(B.id.in_()).group_by(A.id).having(func.count(A.bs) == len()).all()