title: What is the proper way to comment code in Python?
body: <p>I was reading PEP8 and some questions on Stack Overflow, but I was wondering about spaces between comments:</p>
  <p>Let’s say I have this code:</p>
  <pre><code>class MyBrowser(QWebPage):
      ''' Settings for the browser.'''
  
      def __init__(self):
          QWebPage.__init__(self)
          # Specifies whether images are automatically loaded in web pages.
          self.settings().setAttribute(QWebSettings.AutoLoadImages, True)
  
      def userAgentForUrl(self, url):
          ''' Returns a User Agent that will be seen by the website. '''
          return &quot;Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 Safari/537.15&quot;
  </code></pre>
  <p>What is the most Pythonic way of putting blank lines between comments and the actual code? I want to show my program to some experts. And want my code to look more professional.</p>