support Python 3 and more tests