switching to the requests library, making data vs params more robust