It's a triple-quoted python string literal. You can use ''' as well. (The r in front signals the literal is a raw string; e.g. most escape sequences are ignored; this applies to both single and triple-quoted strings).
These strings preserve newlines, unlike single-quoted strings, where you'd have to use the \n newline escape code instead:
>>> """Line one
... Line two"""
'Line one\nLine two'
The format has a miriad of uses. If I need to define a multi-line constant, I often use a backslash after the opening triple-quote to end up with a very readable string literal:
LOREM_IPSUM = """\
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
"""
The most common usage however, is as a docstring; the first string literal of a function, class or module automatically is assigned to that object's __doc__ attribute, for easy retrieval later by other tools (such as pydoc and doctests, especially if you follow the docstring conventions. By convention these usually are defined using tripple-quoted literals, even if there is only one line of documentation.