Fixed s3cmd breakage under Python3

This is kind of hackish, fix it.