Fix to #py-13969

Man this one took me hours and hours to debug. 

`getPsi()` is a class instead of a file if a class is nested, and we do not get a fully-qualified name, but we should since sub class definitions are not more "volatile" than class definitions.

This fix appears to work, but I'm not super-familiar with the codebase so please point out any problems.