Fixed some minor mocking differences in Python 2 and 3.
Fixed some minor mocking differences in Python 2 and 3.

WoLpH/jedi,tjwei/jedi,tjwei/jedi,mfussenegger/jedi,jonashaag/jedi,mfussenegger/jedi,dwillmer/jedi,dwillmer/jedi,WoLpH/jedi,flurischt/jedi,flurischt/jedi,jonashaag/jedi