rewrite with requests module