codeintel: python: ensure Python files are re-encoded with their original encoding

(integrated from master branch change 304d793 by Todd Whiteman <toddw@activestate.com>)