731 - Avoid creating world writable files

Using the agreed umask of 022 to avoid creating world writable files, particularly __pycache__