Pithos fixes

This PR includes some pithos fixes concerning issues with group updates and conformance with PEP8.