next time If you change calipers, you first need to push in and hold/block the brake pedal an inch or 2, so the holes in the mastercylinder are closed. the fluid wil stay in the lines and will not drain. as an extra, you can clamp the hoses.
A lot less air in the lines, and much easyer bleeding.