Porting to Python3

Mostly "print" and urllib->subprocess changed.