CRC implementation in Python.