def mkdir_p(path):
    try:
        makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST:
            pass
        else:
            raise
Emulates `mkdir -p` behavior.
dataset/ETHPy150Open kennethreitz/clint/clint/utils.py/mkdir_p