Improve 'oiiotool --stats' output for deep files: better sample histogram.

More readable output, lists 0-7 individually and then bins by powers
of 2, and prints both counts and percentage of pixels for each bin.
Fix raw bug -- open-with-config had the wrong function signature,
was missing a 'const' and therefore not properly overriding the base class.
Fixes #995.
Python 3 support from Lukas Schrangl

Add a new USE_PYTHON3 cmake switch (and similar in the makefile
wrapper), which is off by default. By setting it to ON (e. g. run cmake
-DUSE_PYTHON3=ON .. or make USE_PYTHON3=1), the python3 bindings for
OIIO are built (independently from the python2 bindings, which are still
controlled via the USE_PYTHON switch.)

Fix py_imagespec.cpp for python3: Replace PyString_* by PyUnicode_* and
PyInt_* by PyLong_* functions, all in #if PY_MAJOR_VERSION > 3
blocks so that it is backwards compatible with python2.