flask implementation of groupclutch