Python computing power

I want to write a Script in Grasshopper. But whenever I put an input to Python 3 the whole program is freezing. I have tried to minimize the computing power but it does not work.

So what can I do?