[python] How to print a groupby object