The code supports both Python 2 and 3. Why split it?