This happened to me once before I started using newspaper for all of my snakes. The mouth movement is just your bp trying to get the substrate out of his mouth. Since it seems like he got rid of the substrate, he should be fine. When I fed on aspen, I used to put a nice big piece of cardboard in my BP's cage to avoid this problem.