Be explicit about compatibility between Python 2 and Python 3