title: End of script output before headers error with Python Script
body: <p>I've read multiple SO posts regarding this, but can't seem to get this to work. This is my first time working with Python on Apache so I would appreciate the help I can get!</p>
  
  <p>So ultimately, I'm trying to run a Python script in my htdocs, but I can't seem to just get the simple python script running on XAMPP. I keep getting a 500 error:</p>
  
  <p><a href="https://i.stack.imgur.com/1wlks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1wlks.png" alt="error"></a></p>
  
  <p><strong>myurl.py</strong></p>
  
  <pre><code>#!/usr/bin/env python3
  
  print("Content-Type: text/html")
  print()
  print ("""
      &lt;TITLE&gt;CGI script ! Python&lt;/TITLE&gt;
      &lt;H1&gt;This is my first CGI script&lt;/H1&gt;
      Hello, world!
  """
  )
  </code></pre>