by adding in print statements i have found where it trips over its self is with this command
self.MySQL_connect()
any ideas i have checked by opeinging idle and typing
import MySQLdb
and it dosent come up with errors so that must be ok then so what else
Edit
the line it dies on in that function is
self.db = MySQLdb.connect(CONFIG['MYSQL_HOSTNAME'], CONFIG['MYSQL_USERNAME'], CONFIG['MYSQL_PASSWORD'], CONFIG['MYSQL_DATABASE'])
so its the one where it connects i downloaded some other .py files that test if mysqldb.connect is working and they didnt work either reading though the code i understand it mostly(i have done some stuff in python before but not connecting to mysql databases