Fix errors in Python 3.x

13 jobs for p1 in 10 minutes and 34 seconds (queued for 6 seconds)