I understand that you force functools module to be imported, but I don't now why. I guess a one-line comment would help.