I checked the pronunciation of th in thread and python in Google Translate. The sound of the th in thread is similar to t, but in python it instead sounds like s.
However, in dictionaries (e.g. Longman), both have phonetics of /θ/. What is the difference? Why is th pronounced differently in thread and python?