Issue #20731: Properly position in source code files even if they
are opened in text mode. Patch by Serhiy Storchaka.
Issue #20778: Fix modulefinder to work with bytecode-only modules.

Bug filed and initial attempt at a patch by Bohuslav Kabrda.