STY: Fix style problems pointed out by rgommers

tabs -> spaces, proper formatting of docstrings, formatting of arrays in
tests and no docstrings in tests.