Canonical Cosmic implementation in Python