""" Foo "" class P def main is shared pass # .error. Unexpected end of file inside doc string. Maybe line 3 was intended to end the doc string. Use exactly three quotes.