pylib: fix bug with set host cpus

set host cpus was not setting cpus
tests: add tests for kvm attributes