:ensure: compatibility with python3