http://en.wikipedia.org/wiki/Thunee in python