Remove Python 2 compatibility code

2 jobs for urllib in 21 seconds (queued for 1 second)