fix spec --example output for python3