You can write all three contexts on the same line, separate by commas:

    with X as x, Y as y, Z as z:

so that you don't have to indent the next thing three levels in.