Index: python/FlexpartTools.py
===================================================================
--- python/FlexpartTools.py	(revision a9c7f3e683adff09e14197fcd3b46ab149d4f8b7)
+++ python/FlexpartTools.py	(revision fb8810cda0dbbf0169e05332ef2fe5632ef1214e)
@@ -303,5 +303,5 @@
     # uncomment if user wants email notification directly from python
     #for t in target:
-        #p=subprocess.Popen(['mail','-s flex_extract v7.0.3 ERROR', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
+        #p=subprocess.Popen(['mail','-s flex_extract v7.0.4 ERROR', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
         #tr='\n'.join(traceback.format_stack())
         #pout=p.communicate(input=message+'\n\n'+tr)[0]
@@ -320,5 +320,5 @@
         # Uncomment if user wants notification directly from python
         #for t in target:
-            #p=subprocess.Popen(['mail','-s flex_extract v7.0.3 normal exit', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
+            #p=subprocess.Popen(['mail','-s flex_extract v7.0.4 normal exit', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
             #pout=p.communicate(input=message+'\n\n')[0]
             #print pout.decode()
@@ -1032,12 +1032,12 @@
 
                     if request == "0":
-                        MR.display_info()
-                        MR.data_retrieve()
+                        MR.displayInfo()
+                        MR.dataRetrieve()
                     elif request == "1":
                         MR.print_infodata_csv(self.inputdir, self.mreq_count)
                     elif request == "2":
                         MR.print_infodata_csv(self.inputdir, self.mreq_count)
-                        MR.display_info()
-                        MR.data_retrieve()
+                        MR.displayInfo()
+                        MR.dataRetrieve()
 # The whole else section is only necessary for operational scripts. It could be removed
                 else: # check if mars job requests fields beyond basetime. If yes eliminate those fields since they may not
@@ -1071,12 +1071,12 @@
 
                             if request == "0":
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
                             elif request == "1":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
                             elif request == "2":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
 
                             maxtime=elimit-datetime.timedelta(hours=12)
@@ -1091,12 +1091,12 @@
                                                 date=mfdate, time=mftime,number=self.number,step=mfstep, expver=self.expver, param=pv[0])
                             if request == "0":
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
                             elif request == "1":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
                             elif request == "2":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
                         else:
                             # increase number of mars requests
@@ -1108,12 +1108,12 @@
 
                             if request == "0":
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
                             elif request == "1":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
                             elif request == "2":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
                     else:
                         maxtime=elimit-datetime.timedelta(hours=24)
@@ -1138,12 +1138,12 @@
 
                         if request == "0":
-                            MR.display_info()
-                            MR.data_retrieve()
+                            MR.displayInfo()
+                            MR.dataRetrieve()
                         elif request == "1":
                             MR.print_infodata_csv(self.inputdir, self.mreq_count)
                         elif request == "2":
                             MR.print_infodata_csv(self.inputdir, self.mreq_count)
-                            MR.display_info()
-                            MR.data_retrieve()
+                            MR.displayInfo()
+                            MR.dataRetrieve()
 
                         if int(mftimesave.split('/')[0])==0 and int(mfstep.split('/')[0])==0 and pk!='OG_OROLSM__SL':
@@ -1160,12 +1160,12 @@
 
                             if request == "0":
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
                             elif request == "1":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
                             elif request == "2":
                                 MR.print_infodata_csv(self.inputdir, self.mreq_count)
-                                MR.display_info()
-                                MR.data_retrieve()
+                                MR.displayInfo()
+                                MR.dataRetrieve()
 
 
@@ -1473,14 +1473,14 @@
             key_vals = grib_index_get(iid,key)
             print key_vals
-            if key=='step':
-                l=[]
-                for k in key_vals:
-                    l.append(int(k))
-                l.sort()
-                key_vals=[]
-                for k in l:
-                    key_vals.append(str(k))
-    
-                index_vals.append(key_vals)
+
+            l=[]
+            for k in key_vals:
+                l.append(int(k))
+            l.sort()
+            key_vals=[]
+            for k in l:
+                key_vals.append(str(k))
+
+            index_vals.append(key_vals)
 
 
