Url replace

I changed the sed bit to replace in Python to avoid future confusion. We can move the function to toolset in the future ...

I'm building this branch on scratch so I can test before I merge.

cc @skarbat  @alex5imon