young ball pythons are notorious for stressing in a new environment.
i think you attempted to feed way too soon, which further stressed the snake out and further pushed them off food.
young beeps can go a lot longer than you'd think without food; 3 weeks is nothing to a semi-established bby. wait a complete 7 days from now before attempting to feed. be sure to scent the room for ~30 min and gauge your snake's body language to the smell before attempting to offer.
good luck friend!