An Error Occured: Python Exception Occurred

(, OperationalError(1275, "Server is running in --secure-auth mode, but 'sam'@'localhost' has a password in the old format; please change the password to the new format"), )
Traceback (most recent call last):
  File "/var/www/superduper/index.py", line 194, in <module>
    superlib.dbconnect()
  File "../lib/superlib.py", line 148, in dbconnect
    db = MySQLdb.connect(passwd=config.db_pass, db=config.db_name, user=config.db_user)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (1275, "Server is running in --secure-auth mode, but 'sam'@'localhost' has a password in the old format; please change the password to the new format")