Make suggested changes to build update

@stefanv had a few late adds to #1094 that did not make the cut:

- Add `LICENSE.txt` in `_shared` for IPython and Spyder licenses.
- Pep8 fix in `painttools.py`
- Remove deprecated `--use-mirrors` for `matplotlib` install in `.travis.yml`

I also added a `travis_retry` before all of the `pip` installs since they sometimes timeout.