What's your question? I think you need to look at the chmod(1) and chmod(2) Linux man pages, not a Python manual.