qemu-iotests: extend the check script to prepare supporting valgrind for python tests