I agree with JHSMith, don't give in. Let the snake go good long while before you give up. I had a california king snake that went 5 months on me not eating because it refused f/t. One day he came to his senses and he now pounds them down like nobodies business.
So I think the best trick is time, although privacy, darkness, patience etc, are all good things to think about as well.