make print statement used by det_pylibdir Python 3 compatible