Update script to use requests library