diff --git a/collatex-pythonport/ClusterShell/RangeSet.py b/collatex-pythonport/ClusterShell/RangeSet.py
index <HASH>..<HASH> 100644
--- a/collatex-pythonport/ClusterShell/RangeSet.py
+++ b/collatex-pythonport/ClusterShell/RangeSet.py
@@ -30,6 +30,8 @@
 # The fact that you are presently reading this means that you have had

 # knowledge of the CeCILL-C license and that you accept its terms.

 

+# This class has been modified to make it Python 3 compliant by Ronald Haentjens Dekker

+

 """

 Cluster range set module.

 

@@ -537,7 +539,13 @@ class RangeSet(set):
 

         (I.e. all elements that are in both sets.)

         """

-        return self._wrap_set_op(set.intersection, other)

+        #NOTE: This is a work around 

+        # Python 3 return as the result of set.intersection a new set instance.

+        # Python 2 however returns as a the result a ClusterShell.RangeSet.RangeSet instance.

+        # ORIGINAL CODE: return self._wrap_set_op(set.intersection, other)

+        copy = self.copy()

+        copy.intersection_update(other)

+        return copy

 

     def __xor__(self, other):

         """Return the symmetric difference of two RangeSets as a new RangeSet.
Implemented workaround to make intersection method of RangeSet class
work correctly with Python 3.