In Python you need to specify the newline character as a byte :
response = ser.read_until(b"\n")
"\n" is two characters whereas b"\n" is one byte delimiter.
Corresponding documentation for Python 3 : https://docs.python.org/3/library/stdtypes.html