#do this import threading threding.current_thread().name = "name_of_the_thread"

Read more of this post