This is a constant time comparison written in C for Python 2.7.x