TST: Fix Travis setup to avoid matplotlib bug

Matplotlib 1.4.0 does not seem to work with Python 3.2. This
causes BayesPy tests at Travis-CI to fail. In order to avoid this,
use matplotlib==1.3.1 for Python 3.2 tests.