Replacing unreliable js by good python stuff for /main