It could be Uropeltis rubrolineata. However is hard to give a definitive identification from the rather blurry photo! The geographic location on the Western Ghats may help narrow down the species.
If you have the location, this paper would help to narrow down the possible species it could be: Conference Paper Shieldtail snakes (Reptilia: Uropeltidae) – the Darwin’s fin...
S.R. Ganesh may be able to help with the ID if you are unable to positively identify it yourself.