Postgres Get Number Of Columns In Python