2-pass gaussian blur filter ?

Does anyone have any idea to do so in the game engine with one python script only ? I need to know the code as I’m going to make a lineart filter that has something to do with blurring, but i’m not a programmer so I can only make a 1-pass blur filter but it’s extremely slow when the blurring gets up in size, so it’d be great if someone can help me out.

Thanks !