moved making directory to python