Fix twofish CBC mode to work with python3.