Create a directory specified by a sequence of subdirectories

    >>> mkdir("/tmp", "foo", "bar", "baz")
    '/tmp/foo/bar/baz'
    >>> os.path.isdir('/tmp/foo/bar/baz')
    True

def mkdir(*args):
    """Create a directory specified by a sequence of subdirectories

    >>> mkdir("/tmp", "foo", "bar", "baz")
    '/tmp/foo/bar/baz'
    >>> os.path.isdir('/tmp/foo/bar/baz')
    True
    """
    path = ''
    for chunk in args:
        path = os.path.join(path, chunk)
        if not os.path.isdir(path):
            os.mkdir(path)
    return path