Python Insert Variable Into Regex Javascript Url Methods