Fix python2 compatibility
Add group_get_type method