def PythonPercentFormat(format_str):
    """Use Python % format strings as template format specifiers."""
    if format_str.startswith('printf '):
        fmt = format_str[len('printf '):]
        return lambda value: fmt % value
    else:
        return None
