how to write files from python code into subdirectories