Frank Liang's hypenation algorithm (i.e. the good one that TeX uses) in Python.
(code, hyphenation, library, python)