Complete intersection.py