python: fix setting device/probe group configuration.
python: Add initial support for input and output formats.
python: Finish input format support.
python: Finish output format support.