CW in python