pithos: Fix issues with groups

* Apply checks for group name/member length
* Do not try to insert an existing member to a group (integrity error)
pithos: pep8 fixes