This means your file includes Windows-style line endings
(CRLF--carriage-return line-feed), which are often inserted by editors on
Windows. To resolve this issue, open an SSH session and run the following
command, replacing <file> with the name of the Python file you're
using:
sed -i 's/\r//g' <file>This will fix it for the copy of the file on the brick, but if you plan to edit it again from Windows, you should configure your editor to use Unix-style line endings (LF--line-feed). For PyCharm, you can find a guide on doing this here. In Visual Studio Code, there is an option in the lower-right corner. Most other editors have similar options; there may be an option for it in the status bar at the bottom of the window or in the menu bar at the top.
You probably forgot to update config.txt.