Python 3 patches and refactoring
Crib