virttest.qemu_vm: Add get_monitors_by_type() function and QMP tests fixes

This patchset adds function `get_monitors_by_type()` into `qemu_vm` and uses in QMP tests to get the list of QMP monitors.

Additionally there is one bugfix and pylint/pep8 fixes of those tests in separate commits.