Did any medieval Catholics believe in the possibility the repentance was possible immediately after death? Did any medieval Catholics have a pious belief that immediately after death, God gave people a last chance to repent of their sins and thus save their immortal soul from going to hell for all eternity?

I recently came across the following tidbit about St. Padre Pio in which he affirmed his own belief that repentance immediately after death was possible.


  "I believe that not a great number of souls go to hell. God loves us so much. He formed us at his image. God loves us beyond understanding. And it is my belief that when we have passed from the consciousness of the world, when we appear to be dead, God, before He judges us, will give us a chance to see and understand what sin really is. And if we understand it properly, how could we fail to repent?" - Close encounters of a special kind with Padre Pio: The Souls in Purgatory, The Guardian Angel, the devil.


This got me thinking of what a priest that once told me some years ago: “Some Catholics in the Middle Ages (500 AD - 1500 AD) had a pious belief that immediately after sinners had died, Our Lord gave them a final chance to repent!”

The priest in question is no longer amongst us and I have never known him to state something like this erroneously.

Can anyone find any references from any Catholic sources about the possible existence of this pious belief during the Middle Ages?
John XXII (reigned 1316-1334) (in)famously held the opinion that one's particular judgment did not occur immediately after death. His successor Benedict XII (reigned 1334-1342) defined the following dogma in Benedictus Deus (1336):


  we define that according to the general disposition of God, the souls of those who die in actual mortal sin go down into hell immediately (mox) after death and there suffer the pain of hell.


Thus, those who die in a state of mortal sin do not have a chance to repent after death.

Now that this dogma has been defined, it's not a pious opinion but heresy to hold a contrary view.