format (str) – The serialization format to use. Supported formats
are asntext, asnbinary, xml and json.
indent (bool) – Whether to indent each line in the output.
Defaults to True.
eol (bool) – Whether to add newlines in textual formats.
eol=False implies indent=False.