removes unnecessary imports in cardinal.py