Fixed some bugs in the intersect.py translation to classy.