Some fixes to the .pythonrc.py code

These are the fixes I suggested at
https://github.com/davidhalter/jedi/commit/8f7de8f663c7252917c69eee3cfcec90b18b4d38#jedi-utils-py-P16.