Report question

Question: Python replace string pattern with output of function