Python Replace By Regex Generator From Text