Fixed compare.py

Fixed errors that uses eigencuts module instead of affinity module.