Fix Travis' after_failure script with Python3.
Re-pin matplotlib version.