Exactly. The aim of the compatibility file is to make things behave the same in Python 2 and Python 3 wherever possible, so that it is possible to write a single piece of code for both.