Postgresql Cursor Fetch Loop Examples In Python Program