Python Determine File Encoding Check