Use correct option for saving files on switching to terminal (IDEA-118846).
(cherry picked from commit 1132b1954ca42f5d7f44d788dbea2afc1d31d9f1)
Missing tops images (PY-11794).
(cherry picked from commit 80b77c907be9817b0241723e1940f2a5088a71be)
fixed PY-12052 Can't run django tests with nosetests because of `nose_utils` not found.
(cherry picked from commit 6f783feb5f2c5cd2d9bd15f9b3c3e8ad67eb0b4a)
Fixed parsing of invalid Unicode code points in literals (PY-12012)
(cherry picked from commit 2543454e31a817e1fc81fe06760334dc2a75e6c5)
Infer 'Iterable' as the type of tuples as default parameter values (PY-10967)

It is too strict to infer 'tuple' as the type of default tuples, since
they are often used as an immutable indicator, that a method expects a
collection.
(cherry picked from commit 79e3da543bef15156b1aa65bfc6e875d8ad15aac)
Fixed potential NPE
(cherry picked from commit 17d36f33c1f22a458a1c46cba235a33bff2a2d75)
backport eugene's NPE fix (IDEA-120351)