update matplotlib version and add six