Sql Server Replace String In Python Function