file.py: added mkdirp

it's like `mkdir -p`