Here's the documentation that talks about starting transaction
https://neo4j.com/docs/api/python-driver/current/api.html#sessions-transactions
with session.begin_transaction() as tx:
for statement in statements:
tx.run(statement)
tx.commit()