Set deault encoding for Python IO