fixed subscribe url generation code for python core