use requests library properly