diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py
index 0bcccdceb8a..bdf45509c3a 100644
--- a/lib/ansible/runner/filter_plugins/core.py
+++ b/lib/ansible/runner/filter_plugins/core.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
+from __future__ import absolute_import
+
import sys
import base64
import json
@@ -34,7 +36,6 @@ import uuid
import yaml
from jinja2.filters import environmentfilter
from distutils.version import LooseVersion, StrictVersion
-from __future__ import absolute_import
from ansible import errors
from ansible.utils.hashing import md5s, checksum_s
diff --git a/lib/ansible/runner/filter_plugins/mathstuff.py b/lib/ansible/runner/filter_plugins/mathstuff.py
index c7c108f4e55..c6a49485a40 100644
--- a/lib/ansible/runner/filter_plugins/mathstuff.py
+++ b/lib/ansible/runner/filter_plugins/mathstuff.py
@@ -15,10 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
+from __future__ import absolute_import
+
import math
import collections
from ansible import errors
-from __future__ import absolute_import
def unique(a):
if isinstance(a,collections.Hashable):