First working version of groupman.py