Python MySQLdb integration