OpenVPN status list method

def list(conf):
    """ OpenVPN status list method
    """
    try:
        config = init_config(conf)
        conn = get_conn(config.get('DEFAULT','statusdb'))
        cur = conn.cursor()
        sqlstr = '''select * from client_status order by ctime desc '''
        cur.execute(sqlstr)
        result = cur.fetchall()
        conn.commit()
        conn.close()
        for r in result:
            print r
    except Exception, e:
        traceback.print_exc()