rename bw_mean to bw, other fixes
diff --git a/start_vms.py b/start_vms.py
index b872d32..f7d097c 100644
--- a/start_vms.py
+++ b/start_vms.py
@@ -2,6 +2,7 @@
 import os
 import time
 import logging
+import subprocess
 
 from concurrent.futures import ThreadPoolExecutor
 
@@ -44,6 +45,25 @@
         NOVA_CONNECTION = None
 
 
+def prepare_os(name=None, passwd=None, tenant=None, auth_url=None):
+    if name is None:
+        name, passwd, tenant, auth_url = ostack_get_creds()
+
+    params = {
+        'OS_USERNAME': name,
+        'OS_PASSWORD':  passwd,
+        'OS_TENANT_NAME':  tenant,
+        'OS_AUTH_URL':  auth_url
+    }
+
+    params_s = " ".join("{}={}".format(k, v) for k, v in params.items())
+
+    cmd = "env {params} bash scripts/prepare.sh".format(params_s)
+    subprocess.call(cmd, shell=True)
+
+    return NOVA_CONNECTION
+
+
 # def get_or_create_aa_group(nova, name):
 #     try:
 #         group = conn.server_groups.find(name=name)