Blender - 3D view does not refresh with my python script
Ok I found the answer, 
The while loop is not the way to do it because it freeze the render until it get out of it. 
I have to code a class without this while loop