Removing some commented code;
Removing code related to root user writing file for someone else;
Retaining os.open to create/truncate file, and create with user
RW permission only