Massive rework to use Requests instead of curl