pep8/pyflakes
create_dir_if_necessary() is unnecessary

We already have makedirs_p()