Make sure we query for the correct module.

If defmod != pymod, then the call to get_inner_scope_for_offset won't
work. Use the line version instead.