QMP: Revamp the Python class example