many codes for castle python study