The Python part is compatible with Python 2 and 3