implemented the CC module in python