a simple search using the magnifying glass at the top right of the screen leads to this:
viewport shading and game engine are two different systems, bpy and bge are not the same.
so i think if someone convert the viewport ambient occlusion to bge, the result would be some of those ssao shaders online you mentioned.