Python Get File Encoding