Made a function to automatically generate .director dictionaries