Use request lib instead of curl
Update tests