Python actually predates PHP.

Python: Dev began in late 80s, 1.0 released January 1994. A modern Python programmer could easily read Python 1.0 code but would find it annoying as heck to write.

PHP: Dev began 1994, first released June 1995, didn't look much like anything we'd recognize as PHP till 3.0 in 1998.

The main issue is process-juggling between HTTP server and app process. CGI was a slow solution that Python does have out of the box support for, but Nginx doesn't even support it.

Whereas JS Just Works. With free paper cuts.

//