Weird, the lock implementation uses just hex and it passes all the Py3 tests ok. On recipes/lock.py line 265, its just .hex.