In a python 3 script I\'m trying to add execution permissions to all .sh files in a directory, as follows:
from os import chmod chmod(\'/path_to_dir/dir_prefi