Creates a new user group with a specific id.

    :param groupname: Group name.
    :type groupname: unicode
    :param gid: Group id.
    :type gid: int or unicode
    :param system: Creates a system group.

def create_group(groupname, gid, system=True):
    """
    Creates a new user group with a specific id.

    :param groupname: Group name.
    :type groupname: unicode
    :param gid: Group id.
    :type gid: int or unicode
    :param system: Creates a system group.
    """
    sudo(addgroup(groupname, gid, system))