Is there a way of writing Python embedded in HTML like I do with PHP or JSP?
There is...  But you're highly suggested to use a templating engine, or some other means of separating the presentation from the business layer.
There are some available that use python as the templating language, but it's nasty because python is sensitive to whitespace, so special syntax hacks have to be added.
Can Python be embedded in HTML like PHP and JSP?