Move ExtType handling logic to the main module.

This was done to simplify the Nvim class: Now its a simple wrapper around
sessions, and many instances with different filters can be created without one
affecting the other
Add utf decode session filter for python 3