DOC: Py2/3 examples compat (datetime, print, StringIO/BytesIO, range)
Note for failing numpy.unique and fix for pandas.Series NameError
Merge pull request #6230 from phaebz/PR_py3_doc_compat

DOC/PY3: Python 3 docs example compat for range, StringIO and datetime