diff --git a/cal_tools/cal_tools/tools.py b/cal_tools/cal_tools/tools.py
index 84c62ce5c2c5dc8758ffbe3e0b525ce4914191cd..0590c6fb4b49c94328894ce6859890a21ed232cf 100644
--- a/cal_tools/cal_tools/tools.py
+++ b/cal_tools/cal_tools/tools.py
@@ -3,7 +3,7 @@ import datetime
 from glob import glob
 from importlib.machinery import SourceFileLoader
 import json
-from os import chdir, listdir, makedirs, path, remove, stat, environ
+from os import chdir, environ, listdir, makedirs, path, remove, stat,
 from os.path import isdir, isfile, splitext
 from queue import Queue
 import re
@@ -14,11 +14,12 @@ from time import sleep
 from urllib.parse import urljoin
 
 import ipykernel
-import numpy as np
-from jinja2 import Template
 from notebook.notebookapp import list_running_servers
+import numpy as np
 import requests
 import tabulate
+from jinja2 import Template
+
 
 from xfel_calibrate import settings