A ball python spending days inside of a hide, especially when being checked on, disturbed, stressed out, etc is not uncommon. While you believe the snake is trapped in there, there is a good chance it isn't and can rearrange itself to get out.
How long have you had the snake? If it's been a couple months or more, leave it alone for a day and scent the room with a rodent for a few hours. If it isn't stuck it should come out to investigate.