python3: Use absolute import for import from local modules

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
diff --git a/procfs/__init__.py b/procfs/__init__.py
index 8d5f68b..7fd67ae 100644
--- a/procfs/__init__.py
+++ b/procfs/__init__.py
@@ -22,9 +22,11 @@
 
 Abstractions to extract information from the Linux kernel /proc files.
 """
+from __future__ import absolute_import
+
 __author__ = "Arnaldo Carvalho de Melo <acme@redhat.com>"
 __license__ = "GPLv2 License"
 
-from procfs import *
-from sysctl import *
-from utilist import *
+from .procfs import *
+from .sysctl import *
+from .utilist import *
diff --git a/procfs/procfs.py b/procfs/procfs.py
index 5a069a9..bc78b75 100755
--- a/procfs/procfs.py
+++ b/procfs/procfs.py
@@ -18,7 +18,11 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
 
-import os, time, utilist
+from __future__ import absolute_import
+from __future__ import print_function
+import os, time
+from .utilist import bitmasklist
+from six.moves import range
 
 VERSION="0.3"
 
@@ -626,7 +630,7 @@
 			f = open("/proc/irq/%s/smp_affinity" % irq)
 			line = f.readline()
 			f.close()
-			return utilist.bitmasklist(line, self.nr_cpus)
+			return bitmasklist(line, self.nr_cpus)
 		except IOError:
 			return [ 0, ]