anemet added a comment. This may be way less efficient for Python 2. You may want to follow the guidance from here: http://legacy.python.org/dev/peps/pep-0469/#migrating-to-the-common-subset-of-python-2-and-3 https://reviews.llvm.org/D34564