Modify Linux Files Ownership And Permissions Using Python

i have 3 groups on centOS called "Admin, Dev & common". Admin is for superUser(root), Dev for developers & common for employee. Now what i am looking for is, if any user from common group submit file at certain path on server using python tool then Ownership And Permissions will change to Admin or Dev, so that other user from common group can not modify file.

To trigger chmod command for higher authority access you need password,which i don't want to give to every common user, so is there any pythonic way to do this ?