change file permissions in python code example Example: python3 change file permissions #import os os.chmod('yourfiletochange.csv', 0o777)