I am facing a strange problem, which is that my when I write a file or create a folder from within my Python program, it creates those files and folders with full permissions, while my default user permissions are not like that.
So, my question is, is there a way I can set the permissions from within my Python program, so that it creates all files and folders with some specific permissions.