fix a bug

python 2 and 3. matplotlib installation problem