fixup: check Python version to decide the import
@@ -3,7 +3,12 @@ from copy import deepcopy
from six import iteritems, string_types, integer_types
import os
import imp
+
+if sys.version_info >= (3, 3):
from collections.abc import Iterable, Sequence, Mapping, MutableMapping
+else:
+ from collections import Iterable, Sequence, Mapping, MutableMapping
+
import warnings
import numpy as np
import ctypes
