Split rope lib for python 2 and python 3