Postgresql Json Array Length Python Array To List