BUG : fixes broadcast errors with np 1.9

 fixes some of the issues raised in #3186
BUG : fix the rest of the errors from np 1.9

 Addresses the remaining errors from #3186
BUG: improved fix for np 1.9 errors
Test PEP8 stuff in separate Travis build.
Don't change existing test set.
Fix matrix
Fix typo.
Fix travis.yaml
Fix plot directive when used with multiple options.

The existing template produces newlines between options, which were
confusing the reST parser. By fiddling with whitespace control, the
template can be made to put things together correctly.
Make sure that number of lines is an int by casting
This should be an integer
Cast to int in test
Cast to int
Cast to integer
Cast to integer
Cast to integer
Integer division in mlab test
Integer division in trirefine