whoops, almost missed this PR. The correct way to solve this would be to is to pull the URL mangling into a shared function: https://github.com/kumar303/ezboot/blob/master/ezboot/__init__.py#L271-L285 It should definitely be shared by download_build().