Python String Function Replace In Sql