- fix MyPy checker error on module protocols
- fix module protocols for python < 3.8 (thanks Ivan!)
- gracefully handle cases where reserved/invalid identifiers show up as package, field, or method names; stub generation is now skipped for these cases to avoid generating invalid stubs