add groupy conversion to python