diff --git a/cscripts/cscaldb.py b/cscripts/cscaldb.py
index d58f773..dfcc705 100755
--- a/cscripts/cscaldb.py
+++ b/cscripts/cscaldb.py
@@ -18,11 +18,11 @@
# along with this program. If not, see .
#
# ==========================================================================
-import gammalib
-import ctools
import sys
import glob
import os
+import gammalib
+import ctools
# ============= #
diff --git a/cscripts/cslightcrv.py b/cscripts/cslightcrv.py
index 54ebc67..689e055 100755
--- a/cscripts/cslightcrv.py
+++ b/cscripts/cslightcrv.py
@@ -18,9 +18,9 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
import gammalib
import ctools
-import sys
# ================ #
diff --git a/cscripts/csobs2caldb.py b/cscripts/csobs2caldb.py
index 4270ce3..15e83c7 100755
--- a/cscripts/csobs2caldb.py
+++ b/cscripts/csobs2caldb.py
@@ -18,11 +18,11 @@
# along with this program. If not, see .
#
# ==========================================================================
-import gammalib
-import ctools
import sys
import os
import datetime
+import gammalib
+import ctools
# ================= #
diff --git a/cscripts/csobsdef.py b/cscripts/csobsdef.py
index f388c8e..fc584c9 100755
--- a/cscripts/csobsdef.py
+++ b/cscripts/csobsdef.py
@@ -18,9 +18,9 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
import gammalib
import ctools
-import sys
# ============== #
diff --git a/cscripts/cspull.py b/cscripts/cspull.py
index ab02524..c3b97bb 100755
--- a/cscripts/cspull.py
+++ b/cscripts/cspull.py
@@ -18,11 +18,11 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
+import csv
import gammalib
import ctools
from cscripts import obsutils
-import sys
-import csv
# ============ #
diff --git a/cscripts/csresmap.py b/cscripts/csresmap.py
index 5e78898..65d07d7 100755
--- a/cscripts/csresmap.py
+++ b/cscripts/csresmap.py
@@ -18,9 +18,9 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
import gammalib
import ctools
-import sys
# ============== #
diff --git a/cscripts/csroot2caldb.py b/cscripts/csroot2caldb.py
index abf8865..3483559 100755
--- a/cscripts/csroot2caldb.py
+++ b/cscripts/csroot2caldb.py
@@ -21,9 +21,9 @@
import os
import sys
import math
+from datetime import datetime
import gammalib
import ctools
-from datetime import datetime
# Optional ROOT import
try:
diff --git a/cscripts/cssens.py b/cscripts/cssens.py
index a9fdb5b..8b69c45 100755
--- a/cscripts/cssens.py
+++ b/cscripts/cssens.py
@@ -18,12 +18,12 @@
# along with this program. If not, see .
#
# ==========================================================================
-import gammalib
-import ctools
-from cscripts import obsutils
import sys
import csv
import math
+import gammalib
+import ctools
+from cscripts import obsutils
# ============ #
diff --git a/cscripts/csspec.py b/cscripts/csspec.py
index b44aa93..285444f 100755
--- a/cscripts/csspec.py
+++ b/cscripts/csspec.py
@@ -18,9 +18,9 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
import gammalib
import ctools
-import sys
# ============ #
diff --git a/cscripts/cstsdist.py b/cscripts/cstsdist.py
index a4ee2b8..ae1c6cd 100755
--- a/cscripts/cstsdist.py
+++ b/cscripts/cstsdist.py
@@ -18,11 +18,11 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
+import csv
import gammalib
import ctools
from cscripts import obsutils
-import sys
-import csv
# ============== #
diff --git a/cscripts/cstsmapmerge.py b/cscripts/cstsmapmerge.py
index 075aaa5..e646d2e 100755
--- a/cscripts/cstsmapmerge.py
+++ b/cscripts/cstsmapmerge.py
@@ -18,11 +18,11 @@
# along with this program. If not, see .
#
# ==========================================================================
-import gammalib
-import ctools
import sys
import glob
import os
+import gammalib
+import ctools
# ================== #
diff --git a/cscripts/csworkflow.py b/cscripts/csworkflow.py
index c9d6589..498a90c 100755
--- a/cscripts/csworkflow.py
+++ b/cscripts/csworkflow.py
@@ -18,10 +18,10 @@
# along with this program. If not, see .
#
# ==========================================================================
+import sys
import gammalib
import ctools
import cscripts
-import sys
# ================ #
diff --git a/cscripts/lsmodel.py b/cscripts/lsmodel.py
index d84fc05..04c9800 100755
--- a/cscripts/lsmodel.py
+++ b/cscripts/lsmodel.py
@@ -18,8 +18,8 @@
# along with this program. If not, see .
#
# ==========================================================================
-import gammalib
import sys
+import gammalib
# ============= #
diff --git a/cscripts/obsutils.py b/cscripts/obsutils.py
index 914a546..438c208 100755
--- a/cscripts/obsutils.py
+++ b/cscripts/obsutils.py
@@ -19,7 +19,6 @@
# ==========================================================================
import gammalib
import ctools
-#import math
# ===================== #