If many directory need to be created, this will fail. Use os.makedirs()