mkdirp, in python and js