fix reencryption tests failure with older grep
Port pycryptsetup.c to Python3.
Port pycryptsetup-test.py to Python3.