Make more use of requests library