using python csc logic