python3: fix tests