I have the following program:
#!/usr/local/bin/python3 print(\"Hello\")
Via terminal I do test.py and I get:
test.py
Windows end line was my problem too. Writing the same program with a linux editor like VI solved it for me. Also, using "less" command , i was able to see the windows end line characters