Removing pythonw, fixing line endings, adding locking