Speed-up of 3X, compare.py working