itsIt's receiving both a return char, and a newline. But you are only checking for the newline.
from time import sleep
import serial
ser = serial.Serial('/dev/ttyAMC0', 9600) # Establish the connection on a specific port
while True:
print (ser.readline()) # Read the newest output from the Arduino
IR = (ser.readline())
if IR == 'FF6897\r\n': #check for carriage return and newline
print('0')
else:
print('shit''wtf')