raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ (closes #17867)
merge 3.3
ignore errors when trying to fetch sys.stdin.encoding (closes #17863)
merge 3.3 (#17863)
refactor traceback.py to reduce code duplication (closes #17646)

Patch by Martin Morrison.