Python3 compliant chmod call