small modif on file rights and python call