Some test codes for castle's python study