Finish making encryption work with Python 3