Fix example execution in python3