Use urllib instead of curl