In a WordPress blogsite, I'd like to add additional functionality but write it something other than PHP if possible, Python for example. For example, I'd like to create a self-scheduling page for a business so that clients can choose appointment times, and then write an admin side for the business to view and manage the bookings. Of course all I really care about from WP for this sub-area is the header/footer and menu links presented on the customer-facing pages.
I can imagine a scheme such as creating Pages that contain nothing more than a div and a bit of Javascript to fill the div with content from a Python-backed page, but don't have a good feel for whether this is a good idea.
I guess my question is whether there's a good way to use WordPress for the general page layout but use something other than PHP for the content area?