add `consume` function to itertoolz
adapt matplotplib gitignore