How can I leverage the Google Docs API in Python to insert paragraphs mixed with nested numbered lists?

Using Python and the Google Docs API, how can I insert standard text followed by multi-level numbered lists? For instance:

items = ["Intro text", "# List item 1", "  # Sub-item A"]
process_doc(items)