build URLs with interpolation instead of format for old Python