py3 compatible print in docs, move __all__ to top of files
pep8 fixes