small crypt util change for python 3