I hope your not keeping the two snakes together..
You could try downsizing the tank size to make him feel more secure. Putting him in a small 15q tub or putting him in a 10 gallon tank might help.
Try covering 3/4 sides of the tank with dark paper of sorts to make it more secure. :]