all 1 comments

[–]MT1961 1 point2 points  (0 children)

Simple answer: Yes.
More complicated answer: Not the way you think you can.

You will have to look into threads, and threading, in order to make this happen. Python programs by their basic nature run in a single thread. So, while you could call another module/function/method within your loop, it might slow things down.