Python Import Reduce From Functools