diff --git a/.isort.cfg b/.isort.cfg
index 0c5b431b..f2cc03f4 100644
--- a/.isort.cfg
+++ b/.isort.cfg
@@ -4,4 +4,4 @@ include_trailing_comma=True
 force_grid_wrap=0
 use_parentheses=True
 line_length=88
-known_third_party = setuptools
+known_third_party = imp,setuptools
diff --git a/risuclient/shell.py b/risuclient/shell.py
index 17df4d57..8a591c7d 100755
--- a/risuclient/shell.py
+++ b/risuclient/shell.py
@@ -30,13 +30,14 @@
 import datetime
 import gettext
 import hashlib
-import imp
 import json
 import logging
 import os
 import re
 import tempfile
 
+import imp
+
 # Do not require everyone to use requests
 try:
     import requests