Python CTCG engine (experimenting)