Fixed #284
fix Python 3 test