Compatibility fix for Python3 (issue  Issue #4783 )

this doesn't fix the donwload part, but it fixes the parallell part