Index: /main/waeup.stress/trunk/src/waeup/stress/__init__.py
===================================================================
--- /main/waeup.stress/trunk/src/waeup/stress/__init__.py	(revision 8747)
+++ /main/waeup.stress/trunk/src/waeup/stress/__init__.py	(revision 8748)
@@ -73,6 +73,6 @@
     directory.
 
-    `mode` can be one of `paster`|`kofactl` and tells how to start the
-    instance.
+    `mode` can be one of `paster`|`kofactl`|`zeo`|`profile` and tells
+    how to start the instance.
     """
     path = instances[name]
@@ -84,4 +84,7 @@
     if mode == 'kofactl':
         subprocess.call('./bin/kofactl start', shell=True)
+    elif mode == 'profile':
+        subprocess.call(
+            './bin/paster serve --daemon parts/etc/profile.ini', shell=True)
     elif mode == 'zeo':
         os.listdir('./bin')
@@ -150,4 +153,5 @@
     """Execute waeup.stress.script in instance context.
     """
+    return exec_in_instance(name, 'install_app')
     path = instances[name]
     old_cwd_ = os.getcwd()
@@ -157,2 +161,19 @@
         './bin/python-console %s' % script, shell=True)
     os.chdir(old_cwd_)
+
+def import_csv(name, *paths):
+    return exec_in_instance(name, 'import_csv', *paths)
+
+def exec_in_instance(name, cmd, *args):
+    path = instances[name]
+    old_cwd_ = os.getcwd()
+    os.chdir(path)
+    script = os.path.join(os.path.dirname(__file__), 'scripts.py')
+    if args:
+        args = ' '.join(args)
+    else:
+        args = ''
+    subprocess.call(
+        './bin/python-console %s %s %s' % (
+            script, cmd, args), shell=True)
+    os.chdir(old_cwd_)
