Update numpy, scipy and matplotlib to the latests

This updates numpy, scipy and matplotlib to the latest versions, 1.7.1, 0.12.0 and 1.2.1 respectively.