removes unnecessary constants in cardinal.py