Python Replace Last Character In String If Paper