def mkdir_p(*args, **kwargs):
try:<EOL><INDENT>return os.mkdir(*args, **kwargs)<EOL><DEDENT>except OSError as exc:<EOL><INDENT>if exc.errno != errno.EEXIST:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
Like `mkdir`, but does not raise an exception if the
    directory already exists.