def get_request_kwargs(timeout, useragent):
 return {'headers': {'User-Agent': useragent}, 'cookies': cj(), 'timeout': timeout, 'allow_redirects': True}

def get_request_kwargs ( timeout , useragent ) : return { 'headers' : { 'User-Agent' : useragent } , 'cookies' : cj ( ) , 'timeout' : timeout , 'allow_redirects' : True }
this wrapper method exists b/c some values in req_kwargs dict are methods which need to be called every time we make a request .