added two functions to cuspidal_classgroup.py