You need to secure the lid. The end locks alone are not going to keep the snake in.
You can use some alligator clamps, luggage straps, or look into another tub.
Target has some that have locks on every side and are perfect for snakes.
Like this. This is only a reference for the style locking lid I mentioned. They come in all sizes.
https://www.target.com/s?sortBy=rele...te#sn-51872701