KVM test: kvm_preprocessing.py: minor style corrections v2

2 little corrections to the patch previously applied.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>

git-svn-id: http://test.kernel.org/svn/autotest/trunk@4322 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py
index e3a5501..a92282a 100644
--- a/client/tests/kvm/kvm_preprocessing.py
+++ b/client/tests/kvm/kvm_preprocessing.py
@@ -139,7 +139,7 @@
     @param command_noncritical: If True test will not fail if command fails.
     """
     # Export environment vars
-    for k in params.keys():
+    for k in params:
         os.putenv("KVM_TEST_%s" % k, str(params[k]))
     # Execute commands
     try:
@@ -208,7 +208,7 @@
 
     # Destroy and remove VMs that are no longer needed in the environment
     requested_vms = kvm_utils.get_sub_dict_names(params, "vms")
-    for key in env:
+    for key in env.keys():
         vm = env[key]
         if not kvm_utils.is_vm(vm):
             continue