title: Type error in PyMySQL cursor
body: <p>I have the following simple code to test my Python Mysql connection.</p>
  
  <pre><code>connection = pymysql.connect(host = "localhost",
                       user = "root",
                       passwd = "",
                       db = "bugs",
                       charset = "utf8mb4",
                       cursorclass = "pymysql.cursors.Dictcursor")
  
  try:
      with connection.cursor() as cur:
          cur.execute('''SELECT COUNT(*) FROM tbl_firefox''')
  
          for row in cur.fetchall():
              print("Number of rows in firefox table:", row)
      connection.commit()
  finally:
      connection.close()
  </code></pre>
  
  <p>When I run the code I get a type error</p>
  
  <pre><code>File "test2.py", line 31, in &lt;module&gt;
      with connection.cursor() as cur:
    File "C:\Program Files\Anaconda3\lib\site-packages\pymysql\connections.py", line 833, in cursor
      return self.cursorclass(self)
  TypeError: 'str' object is not callable
  </code></pre>
  
  <p>I have been viewing similar errors in other python-mysql codes. But still no luck. If anyone could point me the bug, much appreciated. </p>