Fix erroneous indentation of the body of a loop.
Avoid creating a variable to just pass to a function.

All this is supposed to be gone when we rewrite the code to use `requests`
anyway.
Remove unused functions to make requests more explicit.

This hopefully makes the code easier to read and, potentially,
refactorable/reusable even when we rewrite using `requests`.