Updated Python script

Updated the Python script so that the generated files are read only.