qapi/common.py: Convert comments into docstrings, and elaborate