def pformat_codepoints(codepoints):
    """
    >>> l = pformat_codepoints([13, 70, 111, 111, 32, 66, 97, 114, 32, 33, 13])
    >>> repr(l)
    "['\\\\r', 'Foo Bar !', '\\\\r']"
    """
    printable = string.printable.replace("\n", "").replace("\r", "")
    line = []
    strings = ""
    for codepoint in codepoints:
        char = chr(codepoint)
        if char in printable:
            strings += char
        else:
            if strings != "":
                line.append(strings)
                strings = ""
            line.append(char)
    return line
>>> l = pformat_codepoints([13, 70, 111, 111, 32, 66, 97, 114, 32, 33, 13])
    >>> repr(l)
    "['\\\\r', 'Foo Bar !', '\\\\r']"