Added shared groups
added python functions