def makedirs(*args, **kwargs):
    """Wrapper around os.makedirs that doesn't raise an exception if the
    directory already exists.

    """
    try:
        os.makedirs(*args, **kwargs)
    except OSError as ex:
        if ex.errno != errno.EEXIST:
            raise
Wrapper around os.makedirs that doesn't raise an exception if the
    directory already exists.