Substitute repetitive download of URLs with a small function.
Use formatted strings to eliminate spurious spaces.

This may (potentially) simplify dual compatibility between python 2 and
python 3, especially when prints are involved.