[PATCH] test: add compatibility with python3