import MySQLdb

def connection():
	conn=MySQLdb.connect(host="localhost",user="root",passwd="<PASSWORD>",db="test")
	c=conn.cursor()
	return c,conn
import MySQLdb

def connection():
	conn=MySQLdb.connect(host="localhost",user="root",passwd="<PASSWORD>",db="test")
	c=conn.cursor()
	return c,conn