Python script to set permissions for shared paths