Fix webconfig URL generation for python3

Closes #1677.

Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>