python: Avoid exceeding command-line length limit