One of the possible ways of implementing the Hungarian Algorithm. Pedagogical approach, readability was preferred over efficiency.
Original documentation, written for sage, can be found in http://www.matematicamente.it/rivista-il-magazine/numero-23-settembre-2014/hungarian-algorithm-a-short-presentation-using-sage/
The current "maintained" version is for Python 3.6. and based on Numpy.