diff --git a/bob/extension/__init__.py b/bob/extension/__init__.py
index b0f5696981f3b989fca2292cc7f2a6d1c7b30444..9394f8b63df60f448559763a2a54aac4d80416a9 100644
--- a/bob/extension/__init__.py
+++ b/bob/extension/__init__.py
@@ -9,10 +9,10 @@
 import contextlib
 import logging
 
-import pkg_resources
-
 from copy import deepcopy
 
+import pkg_resources
+
 from .rc_config import _loadrc
 
 logger = logging.getLogger(__name__)
diff --git a/bob/extension/rc_config.py b/bob/extension/rc_config.py
index 497203c19d1f30cf2f5dd53f0900b74858d3fd19..b01d88e8b3f7daed0d284f4280d65c9eb6f8ca1f 100644
--- a/bob/extension/rc_config.py
+++ b/bob/extension/rc_config.py
@@ -3,14 +3,13 @@
 
 """Implements a global configuration system for bob using json."""
 
-import json
 import logging
 import os
 
-from exposed.rc import UserDefaults
-
 from warnings import warn
 
+from exposed.rc import UserDefaults
+
 logger = logging.getLogger(__name__)
 
 ENVNAME = "BOBRC"