Python Open Function Encoding Definition