ENH: run nosetests with --with-doctest
Merge pull request #147 from yarikoptic/bf/doctests

BF: make some non-functioning doctests correct smoke tests
BF: few missed import six from external
Fix new pep8 rules
Fix palette truncation in with statement