updated requests module and updated code to work with it