Python Insert Variable Into Regex Javascript Url Redirect