Index: fact/tools/PyDimCtrl/ScriptsForPyDimCtrl.py
===================================================================
--- fact/tools/PyDimCtrl/ScriptsForPyDimCtrl.py	(revision 14457)
+++ fact/tools/PyDimCtrl/ScriptsForPyDimCtrl.py	(revision 14458)
@@ -1,3 +1,3 @@
-#!/usr/bin/python
+#!/usr/bin/python -tti
 
 import time
@@ -150,8 +150,8 @@
   """
 
-  start = time()
+  start = time.time()
   while (feedback.stn != 12):
     time.sleep(0.1)
-    if time() > start + 10.:
+    if time.time() > start + 10.:
       print "==================================================="
       print " feedback is not in state 'CurrentControl' "
@@ -166,8 +166,8 @@
   bias_control.set_global_dac(1)
 
-  start = time()
+  start = time.time()
   while (bias_control.stn != 9):
     time.sleep(0.1)
-    if time() > start + 10.:
+    if time.time() > start + 10.:
       print '==================================================='
       print ' switching on bias not successfull'
@@ -430,5 +430,5 @@
 
   # Take a DRS-Calibration before beginning to take physics Data
-  TakeDrsCalibration()
+  #TakeDrsCalibration()
 
   # check feedback state before switching BIAS ON and ramping up to nominal Voltage
@@ -983,5 +983,6 @@
                           'wobble_angle' : wobble_angle,
                           'source_name' : sourcename }
-  last_drive_method(**last_drive_kwargs)
+  kwa = last_drive_kwargs
+  last_drive_method(kwa['wobble_offset'], kwa['wobble_angle'], kwa['source_name'])
   
   print '... done'
@@ -1036,2 +1037,20 @@
   
   StopTracking()
+
+def PrintCurrents( x = 1.0):
+  while True:
+    time.sleep( x )
+    print time.strftime('%d %b %Y %H:%M:%S UTC', time.gmtime()), GetBiasCurrent()
+
+def WaitForTracking():
+  drive_control.wait(7) #Moving
+  drive_control.wait(8) #Tracking
+  time.sleep(10)
+
+
+if __name__ == '__main__':
+  print 'Welcome to PyDimCtrl'
+  make_sourcedict()
+  print
+  print 'possible sources:'
+  print sorted( sourcedict.keys() )
