Replace curl with wget for python