send_str -> send_sprintf.
Simplify sending of sprintf commands.
Partial port to Python.
Python fixes.