Python Insert Variable Into Regex Javascript Function Return