title: python error in main method defenetion
body: <p>this my first python code , i am trying to connect to data base , i think the connection part was processed successfully  </p>
  
  <pre><code>import MySQLdb
  
  class Database:
          host = "localhost"
          user = "root"
          passwd = "root"
          db = "pitest"
  
          def __init__(self):
                  self.connection = MySQLdb.connect( host = self.host,
                                                     user = self.user,
                                                     passwd = self.passwd,
                                                     db = self.db)
          def query(self, q):
                  cursor = self.connection.cursor( MySQLdb.cursors.DictCursor )
                  cursor.execute(q)
  
                  return cursor.fetchall()
  
          def __del__(self):
                  self.connection.close()
  
  
  
  
           if __name__ == "__main__":
                  db = Database()
  
                  q = "DELETE FROM users"
                  db.query(q)
  
                  q = """
                  INSERT INTO users (title, fname, sname, age, email)
                  VALUES ('A', 'Z', 'BIG Z', '20', 'raspberrypi@example.com'),
                 ('B', 'X', 'BIG X', '30', 'raspberrypi@example.com'),
                 ('C', 'Y', 'BIG Y', '24', 'raspberrypi@example.com'),
                 ('A', 'W', 'BIG W', '29', 'raspberrypi@example.com')
                  """
  </code></pre>
  
  <p>Every time i try to run this code i get this error:</p>
  
  <pre><code>  File "mysqlConnection.py", line 26
      if __name__ == "__main__":
                               ^
  </code></pre>
  
  <p>can any one help me please </p>