Add accuracy.py for testing correctness of output (compared to results.txt).