Support ordered comparisons of tuples
pprint: Adapt to static typing
textwrap: Adapt to static typing
Improve _thread stubs
Fix and update fcntl stubs
Fix tempfile.mkstemp stub
Fixes to os stubs
Update io stubs
Fix open() signature in stubs
tempfile: Adapt to static typing (partially)

A few things are still broken.
tempfile: Work around type checker bug
tempfile: Work around front end limitation

__dict__ is not currently supported for instances.
Update comment
Add missing os.path variables to stubs
Fix shutil.rmtree signature in stubs
Enable os.symlink in stubs
shutil: Adapt to static typing (partially)
shutil: Fix bug in original Python code
shutil: Fix bug in original Python code
shutil: Work around type checker limitation

See also issue #157.