Python implementation of Fleury's Algorithm