Made more things from groups.py work with groups2.py
Haskell and Python: Split the code for calculating lower central series into
their own functions
Implemented `partitions` in Python