Rewrite udemy requests usage to urllib and urllib2