Or other option, but no save but your "share folder with all".
permission = file1.InsertPermission({ 'type': 'anyone', 'value': 'anyone', 'role': 'writer'})