replace urllib with request