switch to upstream Jedi API

This replaces deprecated API calls to the new ones. Also this
partially fixes #320.
Merge pull request #327 from JazzCore/jedi_upstream_fixes

Switch to upstream Jedi API