diff --git a/hug/class_based.py b/hug/class_based.py
index <HASH>..<HASH> 100644
--- a/hug/class_based.py
+++ b/hug/class_based.py
@@ -19,6 +19,8 @@ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT
 OTHER DEALINGS IN THE SOFTWARE.
 
 """
+from __future__ import absolute_import
+
 from types import FunctionType, MethodType
 
 from falcon import HTTP_METHODS
diff --git a/hug/test.py b/hug/test.py
index <HASH>..<HASH> 100644
--- a/hug/test.py
+++ b/hug/test.py
@@ -19,10 +19,10 @@ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT
 OTHER DEALINGS IN THE SOFTWARE.
 
 """
-from io import BytesIO
-import sys
 import json
+import sys
 from functools import partial
+from io import BytesIO
 from unittest import mock
 from urllib.parse import urlencode
 
@@ -96,4 +96,3 @@ def cli(method, *kargs, **arguments):
     method.cli.output = old_output
     sys.argv = old_sys_argv
     return to_return and to_return[0] or None
-
ensure absolute imports when compiling with Cython