Function Sql Server Return String Python Replace