fix Python 3 issue