def execute(cls, template, params=None, commit=True):
        """Executes the specified statement and returns a copy of the cursor
        """
        cursor = cls.conn.cursor()
        cursor.execute(template, params) #execute stmt returns None
        commit and  cls.conn.commit()
        return cursor
Executes the specified statement and returns a copy of the cursor
        
recipes/Python/473834_simple_Object_Relational/recipe-473834.py