When one of my ball pythons was younger (and smaller lol) he was able to get out. He would find a way up to the light fixture, wrap his body around it and push/squeeze until the light fixture came loose then crawl out of the hole for the light cord lol. I ended up covering the hole from the top to prevent this, he is now far too large to get through but they can be sneaky