def get_object_xyz(cur,obj):
    """
    Returns (x,y,z) coordinates of object

    Parameters:
    -----------
    cur : MySQLdb cursor
    obj : str
        object name
    """
    sql = ("select OBJ_X,OBJ_Y,image.IMG_SectionNumber "
            "from object "
            "join image on image.IMG_Number = object.IMG_Number "
            "where OBJ_Name = '%s' " %(obj))
    cur.execute(sql)
    return cur.fetchone()