Фатальная ошибка Python: не может восстановиться после переполнения стека.

Seems like you looped too much. I can't help because I do not know what you are 
trying to do, but I recommend you substitute the loops with something else.
Thankful Toucan