Moved use_python_logging() from C to Python.

Also slightly changed the API for general Python callbacks to include
the gphoto2 logging level.