def get_available_ctid():
 current_ctids = list_ctids()
 if current_ctids:
  return (max(current_ctids) + 1)
 else:
  return 1000

def get_available_ctid ( ) : current_ctids = list_ctids ( ) if current_ctids : return ( max ( current_ctids ) + 1 ) else : return 1000
get an available ctid .