The difference is lf37.py has dos line endings, and lf27.py has linux line endings. This usually means that you created the lf37.py file on a windows computer and then uploaded it. To avoid a 500 error you must make sure your files have linux line endings. I've never used it myself, but I've heard the windows program notepad++ can save files with linux line endings. I'm sure there are others as well.