Returns: a list of subdirectories of the given directory

def get_subdirs(directory):
    """
    Returns: a list of subdirectories of the given directory
    """
    return [os.path.join(directory, name)
            for name in os.listdir(directory)
            if os.path.isdir(os.path.join(directory, name))]