Python Use Variable In Regex String Javascript Methods