Upgrade numpy scipy and various other dependencies.

Still unable to upgrade matplotlib to 1.3.1.