python3 support for tests